How to disable "ADS" blocks on separate pages?

Posted in: Newspaper
Post count: 63

Hello,

How to disable the blocks of the “ADS” section (with Google Adsense code) on separate pages?

Thanks.

Post count: 63

?

Post count: 20688

Hi,

What exactly do you want to do with the ads? Some more details would be very helpful, as many as you can provide.

Thanks

Post count: 63

Google has blocked ads (for content 18+) on some pages and requires I to remove Adsense code on them. Therefore, it is necessary that the Adsense code is not displayed only on these pages.

Post count: 20688

If they are pages you can edit the page and remove the ads.

If the ads are in widget sidebars in posts and pages, maybe create sidebars without ads and set them.

If the ads are in the post content (top, inline or bottom ad spots) the theme does not have settings for specific posts. All it has are general settings to hide them per device
https://www.screencast.com/t/g6L9YSkB

Hiding them with CSS is permitted by Google when using media queries
https://support.google.com/adsense/answer/6307124?hl=en
Setting a display:none without media queries is forbidden by Google
https://support.google.com/adsense/answer/1354736?hl=en

Maybe use a plugin such as Adrotate to better manage the ads in the website. There are many theme users that recommend this plugin. I believe it has settings for what you have to do per specific posts.
Some more about it here if you should consider it
http://www.wpbeginner.com/plugins/how-to-manage-ads-in-wordpress-with-adrotate-plugin/
https://ajdg.solutions/manuals/adrotate-manuals/

Post count: 63

I see that there is no simple solution.
Thanks

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