Hide Ads from specific post – something like NSFW tag

Posted in: Newspaper
Post count: 8

Hi

I want ads code not to work on specific posts, so that ads gets hidden. How can I do that?

My website – https://www.postoast.com

Thanks

Post count: 20688

Hi,

I see you use Adsense, so hiding them with CSS is not an option. You could try the Adrotate plugin, I believe this plugin has options like that, for more control over the ads. Many theme users recommend the plugin I mentioned. Some documentation about it here
http://www.wpbeginner.com/plugins/how-to-manage-ads-in-wordpress-with-adrotate-plugin/
https://ajdg.solutions/manuals/adrotate-manuals/
You could give that a try. Maybe there will be at some point options like this in the theme.

In a coming theme update, there will be additions to the way the post templates are created. This will affect the post ads as well.

Thanks

Post count: 8

I do not want to install any Plugin for this, is it possible that after doing some manual changes in codes I will able to achieve what I want?

Post count: 20688

A plugin to manage ads would be easier then modifying code in the theme files, modifications which will probably be lost if you update the theme. You could give that plugin a try.

In a coming update there will be changes to how the post templates are created. So you will be able to control the ads that display on posts better. For example you can create a post template and use that for posts where you don’t want to display ads. And another one for the posts you want to display ads.
There shouldn’t be long now before the update will be released, with these new features.

Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.