Ad Block on Home Page

Posted in: Newsmag
Post count: 25

My site is set up to just run the latest blog posts on the home page, with a sidebar on the right. Without fussing around with PageBuilder, is there a way to just add a 640×90 ad block directly above the blog posts (underneath the header on the left)?

Thusly:

OMG Home Page

Site:

http://www.oldmission.net

Thank you,
Jane

Post count: 25

Ok, that first link didn’t work. Here’s what I had in mind:

http://www.screencast.com/t/0AkUAehZT

Post count: 23312

Hello jboursaw,

I have inspected your website and I saw that you are using the Page Template+Latest Articles+Pagination as for your front page, right? So, if you want to add an Ad Block at the very top of your latest articles, above this, you should edit the page-pagebuilder-latest.php core file and then, use the do_shortcode method and add your desired Ad which has to be added to your Custom Ad 1 in the panel, like this -> http://screencast.com/t/9WYabRBwg -> http://screencast.com/t/0zIZ9ueFLut and the result you should see here -> http://screencast.com/t/6LcA9dyJJ
The snippet of the code which you should add there is ->
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]'); ?>

Hope this helps!

Thanks for the message!

Post count: 25

Thanks so much! Ok, I did as you instructed, and it worked – but ONLY if, in the pagebuilder, I check the box to “show title” at the top of the latest articles block. If I try to hide the title, the ad doesn’t show up.

How can I make the ad show up without showing the “Latest Articles” title at the top of the block?

Also, is there a way to rotate that ad block between 3 custom ads?

Thank you.

Post count: 23312

Hello jboursaw,

About what type of Ad do you are referring to? Please provide your website URL with your Ad displayed and the Latest Articles title so I can inspect it closer and also, so I will be able to provide a more accurate response.
Regarding on rotate Ads, please notice that our theme does not have any such an option that allows you to rotate the Ads using 3 custom ads, sorry! Please notice that our theme has been designed to use only the Adsense code if you want to bring best results. The AdRotate plugin is not tested with our theme but from our reports it works fine, you can read more details about it here: https://ajdg.solutions/manuals/adrotate-manuals/
The plugin generates shortcodes so you just need to paste the shortcode in theme panel -> ads and the theme will display the output generated by ad-rotate: http://screencast.com/t/B9qp4cRLFLaV

Hope this helps!

Thanks for the message!

Post count: 25

Thanks so much. This will be a custom ad from one of my local advertisers (not AdSense). Right now, it’s just a “your ad could be here” ad, with a link to my advertising page.

My website is: http://www.oldmission.net.

I’ve got “show title” checked, so you can see the ad there right now, along with the “Latest Articles” title at the top. I mean, even if we could get the “Latest Articles” below the ad, that would be better for me.

Seems like there must be a way to just drop that ad code into Visual Composer…? But I don’t see an option to have it JUST above the latest articles. If I drop it in there, it covers the whole space, left to right, through the right-hand sidebar.

Thanks for the tip re the rotating ads – will check out that plugin!

Post count: 48

Catalin ,can I use the steps ,you have shown her to put ad after under my article ?

If yes ,can you show me where to put the code in the angle post.php file ?

Post count: 48

I’m using newspaper theme ,anyway

Post count: 48

Catalin ,can I use the steps ,you have shown her to put ad after under my article ? Here like this http://www.screencast.com/t/69itiOTaB

If yes ,can you show me where to put the code in the angle post.php file ?

Please my ad spot under the article is already occupied and there is a blockage of that appearing just under my post coz of another ad network. >>> http://www.screencast.com/t/ziep6t5O

  • This reply was modified 9 years by tonikusi4.
Post count: 22421

@ both
If you want to place a custom ad in the posts above the related articles section you will have to use the do_shortcode function and place it inside the post template files that corresponds to the post template that yopu use. Here is an example:
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]'); ?>
this code will render the ad from custom ad 1. You can see the shortcodes in visual composer on an ad box element (switch to classic mode in page edit to see the code and get the shrotcode)
Now to place it inside posts above the latest articles you need to add it like so:
http://screencast.com/t/8Rl1SWbTyB

Thank you!

Post count: 48

Bogdan , I get it but can you please check my site to see the post template and the exact loop single to edit pls ?..https://goo.gl/xIFv6j

And again , I preferably want it be right after my post content ….not on top of the related …In a nutshell , Like I wanna have two seperate adsense ads right after my article http://www.screencast.com/t/69itiOTaB

  • This reply was modified 9 years by tonikusi4.
Post count: 25

Ok, so here’s what I did. I couldn’t get the “latest articles” title to format right using the above option (adding the code into the php file). So instead, I used Visual Composer – PageBuilder+Latest Articles+Pagination – and then added the raw ad code to the top of the latest articles, using the 2/3 1/3 option. In the 2/3 space on the left, I put the ad code (centered, it fits perfectly above the latest articles section). In the 1/3 space on the right, I put a search box widget (though might change that out for an ad box at some point).

You can see what it looks like here: http://www.oldmission.net

Post count: 23312

Hello,


@tonikusi4
, I have inspected your post pages, and I notice that you are using the single template style 1. Further, if you want to add some ads after to the related articles section you should edit the loop-single-1.php core file, based on the explanation above. If you want to have more than one Ad, you should use Custom Ad 2, 3, 4 with the do_shortcode method. After adding this, maybe you should use a bit of CSS to obtain a good design.

@jboursaw
, I have checked your website and everything seems to look good. Thumbs up.

Thanks for your understanding!

Viewing 13 posts - 1 through 13 (of 13 total)
The forum ‘Newsmag’ is closed to new topics and replies.