Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

Turn off AdSense on certain pages

Old Apr 3, 2009, 09:09 AM
Jerry's Avatar
65 posts · Feb 2009
The beautiful Pacific Northwest USA
I would like to turn off the adsense ads on a few pages- "about" "privicy policy" for example. You set me up with the code to get adsense on my "page" pages here Flynn. Is there a simple way of accomplishing this.
Old Apr 4, 2009, 04:34 PM
Flynn's Avatar
3,768 posts · Oct 2008
Munich, Germany
In that code replace

PHP Code:
if ( is_single() OR is_page() ) { 


PHP Code:
if ( (is_single() OR is_page()) AND !is_page('About') AND !is_page('Privacy Policy') ) { 
Or to exclude many pages

PHP Code:
if ( (is_single() OR is_page()) AND 
is_page(array('About''Privacy Policy''25''119''some-page''another-page')) ) { 
In the last example I mixed page titles, page ID's and page names (= the URL part of a page when using Permalinks, i.e. mysite.com/blog/some-page/). All three methods of page identification (ID, title, name) can be used, and they can be mixed.


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding AdSense to content Jerry Atahualpa 3 Wordpress theme 51 Jun 10, 2010 05:48 AM
How to turn of the form/text field shadow? Fux Atahualpa 3 Wordpress theme 2 Apr 27, 2009 08:06 PM
Unable to turn off feed icons lokimann RSS, Feeds & Subscribing 1 Mar 30, 2009 07:49 AM
[SOLVED] How do I turn on the Reply for PAGES? weightlosscoach Atahualpa 3 Wordpress theme 2 Mar 22, 2009 06:41 PM
AdSense Question Jerry Atahualpa 3 Wordpress theme 1 Feb 21, 2009 04:24 AM

All times are GMT -6. The time now is 05:18 AM.

Powered by vBulletin® Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.