Custom ad above "related posts"

Posted in: Newspaper
Post count: 39

Guys, tried adding the code to single.php and to single loop.php to no avail.

Where exactly should I put the ad code/tag to display just above Related Articles?? This seems simple in principle, but not showing properly.

I even tried with the custom_ad shortcode. nothing shows.

Any tips appreciated. thanks

Post count: 23312

Hello gunner05,

In order to get the post ad above the related articles, you will need to edit the theme files and use a do_shortcode function inside the post template you want the ad to be displayed in. For example, you can use a theme custom ad 1 spot and add this shortcode in each of the loop files corresponding to the post styles you use:

Ad this code to the very top of the loop file like so: http://screencast.com/t/UWFnEMRg
Make sure you have an ad placed in custom ad 1

Hope this helps and let us know how it goes!

Thank you for the message!

Post count: 39

Is this only possible by shortcode – is there no way to paste the code script directly? All my custom ad spots are being used right now.

1-how do I generate more fields?
2-if i’m using template 5 as default post template. that means i have to edit single loop 5?

Cheers Catalin

Post count: 23312

Hello gunner05,

1)If you want to add more ads, it is necessary to create another custom ad (custom ad 6, custom ad 7, etc). Please follow the steps in the topic to create another custom ad: https://forum.tagdiv.com/topic/create-additional-custom-ads/

2)Yes, if you are using single template 5 you have to change the code in loop single 5.php

Hope this helps and let us know how it goes!

Thank you for the message!

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