How To Move or Create An Ad To Under The Post Title

Posted in: Newspaper
Post count: 23

I was wondering how to get an ad to appear just under the post title (above the social share buttons). When I set an “Article Top Ad” it appears below the featured image. Can I move it somehow?

Also I am using a 728×90 Ad just under the post content, but it seems that the content itself is smaller than 728. Is there a way to adjust this to the ad and the content align right? It also means if I set “auto” it wont show the 728×90 it shows a much smaller ad.

Post count: 20688

Hi,

You could use a do_shortcode with a custom ad inserted in the loop single php file of the coresponding post template that you use, found in the theme files. Example for post template 2 – edit loop-single-2.php like this – https://www.screencast.com/t/4A2gQiM0kIJM and add the code above the top sharing – https://www.screencast.com/t/eYsURewPomd

This is the code – make sure you have an ad code placed in Theme panel->Ads->Custom ad 1 – https://www.screencast.com/t/Mw29z93l9

<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');?>

Result – https://www.screencast.com/t/84kV4eKU

As for the size of the ad, it takes the full available width taking in account if there is a sidebar or not – https://www.screencast.com/t/jtmFdrnQ2F
If in your case it is of a much smaller size please provide a link so i can inspect it further.

Thanks

Post count: 23

Great stuff!! Thanks for that!

I got it working just as you described, but how do I remove the gap between the banner and the social sharing buttons as per your result link?

Also how do I PM you the link of my page to show you the banner width vs the post content width?

Post count: 20688

Hi,

Post your link here in the topic and i will take a look, also you can use this code to reduce the margin, enter it it Theme panel->Custom Css

.td-post-sharing-top {
margin-top: -15px;
}

Result – https://www.screencast.com/t/tpwkOIZy
Thanks

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