Hi
The theme doesn’t have an option to chose if the header ad will be displayed or not in a specific category. To remove the header ad from a category page you can add a conditions in ads.php like here: http://screencast.com/t/LO8DMY1T2Y
<?php
if (!is_category(array(id1, id2))){
echo td_global_blocks::get_instance('td_block_ad_box')->render(array('spot_id' => 'header'));
}
// show the header ad spot
?>
Just add the ids for the category pages in which you don’t want to display the header ad. To get the category id follow this link: http://screencast.com/t/AYBYVkw5
Thanks!
-
This reply was modified 10 years by
Andrei L..
Hi
The above code is tested and works fine just make sure you add it as I’ve indicated above. Also make sure you add a correct category id, otherwise won’t work. The code can be tested in a very simple way to check how it works. Added like here in ads.php:
render(array('spot_id' => 'header'));
}
// show the header ad spot
?>
This code will remove the header ad for all category pages. If this works just add your a category name as parameter for is_category function and will remove the ad for a that category page.
I hope this helps.
Thanks!
Hi
Please check this topic, I’ve offered a solution here: https://forum.tagdiv.com/topic/article-inline-ad-3/
Let me know how it goes.
Thanks!