Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

Turn off AdSense on certain pages


  #1  
Old Apr 3, 2009, 09:09 AM
Jerry's Avatar
Jerry
 
65 posts · Feb 2009
The beautiful Pacific Northwest USA
Hi,
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.
  #2  
Old Apr 4, 2009, 04:34 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
In that code replace

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


with

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.


Bookmarks

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 03:00 AM.


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