Remove instagram and google ads only from some directories / pages

Posted in: Newspaper
Post count: 49

Good morning to all the team tagdiv, I wanted to ask if you can intervene on the code hide in some pages or on entire directories instagram images in the footer or remove the ads of Google ads only in some pages (pages created, in this case) to create with toolset plugin? Thanks for the support. Rodolfo

Post count: 20688

Hi,

So you want to remove the footer Instagram only on some pages, posts etc. That could be done with some CSS for example
Before – http://prntscr.com/lnhgkw
With code – http://prntscr.com/lnhgpq
By using the unique ID of a post or page it can be removed only on them.

Or you could do it in the code by adding a condition, to not display the Instagram in some pages, something like this for example
https://www.screencast.com/t/ywEp5gogLab

For Google ads the the CSS solution would not work. It is forbidden to hide them with CSS, unless using media queries
https://support.google.com/adsense/answer/1354736?hl=en
So hiding them like that is not a solution unless using media queries.

For the page content in pages it would be simple, simply don’t use ad boxes in them. But the header ad and footer ad will still show.

Most users that require more advanced control over the ads are using the Adrotate plugin. I believe this plugin has settings to manage the ads. Some info about it here
http://www.wpbeginner.com/plugins/how-to-manage-ads-in-wordpress-with-adrotate-plugin/
https://ajdg.solutions/manuals/adrotate-manuals/

Thanks

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