How to disable adsense on Privacy Policy page

Posted in: Newspaper
Post count: 11

Hi,

I want to disable adsense from showing on the Privacy Policy page of my site.

How do I do that?

Thanks

Post count: 23312

Hello freddre,

If you want to disable the AdSense for your specific page, you have to use a bit of CSS to hide it. Please try the code below and add it in Theme panel->Custom CSS area. First of all, you have to find you specific page ID number, like this -> http://screencast.com/t/BbBdijPZM

The code is ->

.page-id-39 .td-g-rec {
display:none!important;
}

Hope this helps and let us know how it goes!

Thank you for the message!

Post count: 11

Hi,

I’ve added the code on Custom CSS but now the page in question is blank.
On the Custom CSS there’s an alert on the left side stating “use of !important”

What do I do?

Thanks

Post count: 23312

Hello freddre,

For more information about this type of declaration you should find in this documentation, here -> https://www.smashingmagazine.com/2010/11/the-important-css-declaration-how-and-when-to-use-it/ In this case, you have to use without !important because the result would be the same.

Thank you for the message!

Post count: 11

I cannot make it disappear.
The adsense codes are still there…

Post count: 23312

Hello freddre,

For an accurate custom CSS code, I need to know your website URL so I can inspect it closer. Please provide your site and also, you can provide some useful screenshots where you show what Ads you want to hide, so I will be able to provide a more accurate response.

Thank you for the message!

Post count: 11

Here’s the URL:
http://ninjacosmico.com/privacy-policy/

Best regards

Post count: 23312

Hello freddre,

If you want to remove your ad only for this page, you have to use a bit of CSS code to hide it. Please try the code below and place it in Theme panel->Custom CSS area.

The code is ->

.privacy-policy .td-header-sp-recs {
display:none;
}

The result -> http://screencast.com/t/zYZzddORMIzk

Thank you for the message!

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