Hello,
I have one question, I am about to add some custom ads in my website and my add manager (Taboola) is asking me to add one script in the <head> section and one script at the end of my <body> tag, (I assume it is after… )
How can I do this ?
Thanks in advance and thanks again for the amazing theme ! 🙂
Hi,
You would have to edit the header.php and footer.php files and this line:
echo do_shortcode('[td_ad_box spot_id="custom_ad_1"]'); like this in the header.php file: http://screencast.com/t/ex4p1w901Vd
…and this line: <?php echo do_shortcode('[td_ad_box spot_id="custom_ad_1"]'); ?> like this in the footer.php file: http://screencast.com/t/Cjnh63IqAo (move it above the </body> if you need it inside the body)
Result: http://screencast.com/t/3g1alP6tF
Thanks
Thank you but I would like to make sure I have made myself clear.
Actually Taboola gave me 4 codes :
One script that I have to put in the header (but which IS NOT displaying an ad)
One script that I have to put in the footer (which is also not supposed to display an add)
And two others scripts that are actually displaying adds :
– one as a bottom article add ( I was planning to paste the code in the bottom add section in the theme panel options )
– one as a side bar add ( I was planning to apste the code in the sidebar add section in the theme panel options )
Is your answer still relevant ?
Thank You
Hi,
I tooth that you refer to an ad, either way you would have to edit those files and add your script there. I would not know to tell you how it would behave, you should try to get someone who knows how to do it if you don’t or you should ask your ad managers how you should add it, the files remain the same.
Thanks
This is a very handy plugin for that sort of thing: https://wordpress.org/plugins/q2w3-inc-manager/ And there may be others like it that are more current, but this one was recommended by our ad providers.