How to Disable Theme ads for specific Page / post

Posted in: Newspaper
Post count: 28

Hello I am using theme’s ad manager to show google ads on my website. Is there any way to hide the particular ad on specif page / post ?
For example I want to hide the ads for this page Top of the page ad and bottom of the page ad -> https://test.yuvayana.org/ias/upsc-ias-prelims-test-series-in-hindi/

Post count: 35449

Hi,

Once entered in the theme panel the ads will be displayed at all times. Can’t disable them for specific posts for example.

If you require more advanced control over the ads you could try a plugin for managing the ads. Some theme users with similar desires use the Adrotate plugin. Some information about it here
http://www.wpbeginner.com/plugins/how-to-manage-ads-in-wordpress-with-adrotate-plugin/
https://ajdg.solutions/manuals/adrotate-manuals/
I believe this plugin has settings like you mention, based on user feedback also works with the theme. So it would be worth a try.

Thanks

Post count: 28

Hello Calin, thanks for your response. Actually I forgot the way and I got the solution in the forum question that I have posted 2 year back.
Ads can be hide from this CSS code for particular post by post id.

.postid-456 .td-g-rec {
display:none;
}

replace the number with numeric post id.

Post count: 35449

Hi,

Please check this documentation -> https://www.screencast.com/t/tX8fPaT5q1q -> https://support.google.com/adsense/answer/1354736?hl=en

If the ads that you want to hide are set only in content, then you can set a tagDiv Cloud template on that posts.

Thank you.

Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.