Dont show adsense on pages

Posted in: Newspaper
Post count: 6

Hello, quick question.

I’m trying to block adsense blocks from not appearing on wordpress pages (all pages).

I’ve tried this code, but it doesn’t seem to work

<?php if(!is_page( ){ ?>
<!-- Google AdSense Code Here -->
<?php } ?>

how can I make it work?

Post count: 6600

Hi,

You could try to use a plugin that has a feature like that, like this http://wordpress.org/plugins/quick-adsense/ or similar.
Hope this helps!

Thanks

Post count: 6

Hi ,

Quick Adsense isn’t an option for me because I use the header ad spot.

I need to remove the header ad on all pages (not posts). Quick adsense doesn’t have an option to disable ads on pages.

Do you know a code that will work with removing the header ad from pages?

Post count: 9544

Actually …. I’m going to chime in here and say this would be a great feature for the theme (or basically themes in general) for a site to be able to turn off all advertising on “pages” such as “about the site” or “staff” or “privacy policy” etc. — basically an option to not have any ads for pages at all.

Way down on the to do list of suggestions I’m sure, but I think that ability as well as “remove ads from the 404 page” on by default, would be likely popular enough requests now to add to possible feature requests.

Post count: 6

Yes please, or maybe it’s possible with a custom code?

Post count: 6600

Hi,

I have added this feature on our list and we will try to implement it in future updates.


@Michaelvb

You could try this: https://forum.tagdiv.com/topic/function-to-hide-ads-and-function-to-show-author/#post-8993
You cloud also read here about this https://forum.tagdiv.com/topic/how-to-block-google-ads-in-some-posts/

Thanks

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