Just to clarify:
1) This is in reference to the header leaderboard ad and a custom leaderboard ad I have set to the footer. The theme settings only permit 1 global header ad throughout the entire site but I instead need different ad code for the homepage vs the header on category, tag and post templates.
2) When ads are set through the theme settings they lack the label “advertisement”
3) There does not seem to be a theme setting to replicate the homepage footer ad styling to all other templates like category, tag, etc. What template edit must I make to get the homepage footer ad style to apply to the category template like this screenshot from dev.iraqinews.com:
Correct layout:
<!– copy and paste. Modify height and width if desired. –>
Current layout (incorrect):
<!– copy and paste. Modify height and width if desired. –>
Hi
1 To display a different header ad for categories pages please check this topic: https://forum.tagdiv.com/topic/different-header-ads-according-to-category/
2 To ad a title for ads you can use this method: https://forum.tagdiv.com/topic/inline-ad-titles/ Note that depending by ad type it may require others customizations.
3 You can use the do_shortcode function in the file which generate each page. For example a page which use pagebuilder + latest as post template require this file to be modified: http://screencast.com/t/Nc8kqxbkFZIs For the category page you can add the code here: http://screencast.com/t/vNFnf6KZ9m3 – http://screencast.com/t/TkfBOExjw The same line of code can be used in tag,php, search.php etc.
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]')?>
Please note that all this customization require custom work and for the moment we can’t offer any custom services. The above solutions contains code which can be adapted such that to obtain the desired result but there are many situations and conditions which must be implemented in order to have all your requests achieved.
If you still need guidance on this or you’re not aware of the steps you need to take in this regard please consider hiring a developer or a freelancer to do this for you.
Thanks!
-
This reply was modified 10 years by
Andrei L..
