Hello,
How to remove ad blocks from 404 and for example other pages like about, contacts, diclaimer?
Hi
To remove the ads from 404 page add this code in td_block_ad_box.php
if ( td_global::$current_template == '404' ) {
return;
}
If you want o remove the ads from some specific pages you need to add a set of conditions like here: http://screencast.com/t/F6eLyoB3U1W
if (is_page(ID) or is_page(ID)){
return;
}
To get the page id follow this link: http://screencast.com/t/Lhewob9kSr
Thanks!
One more question:
How to disable some ads showing in custom category?
Hi,
You can add a condition here – http://screencast.com/t/bnPRZh406
if(!is_category('slug or ID'))
Thanks!
I want to clarify my question. I want to show only header banner in all posts in some custom category, let’s say category “about”. In this category page I don’t want to remove ads, only in category posts.
Hi,
You could try in_category function to target all posts from specific category – https://codex.wordpress.org/Function_Reference/in_category
If you want to apply this for the header ad here you can add the condition – http://screencast.com/t/WC6wZQAbo7C
If you want to do this for articles ads and sidebar, you can add the condition like where I suggested above – http://screencast.com/t/AF8SurJKDVC
The theme doesn’t have an option for this and you will have to make this custom modifications in the code, I suggest to get someone to help you with this as we cannot provide custom work at this time, we can only make some suggestions, sorry!
Thanks!