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 » Center area post/pages »

Adding Adsense code below Title in Single Posts


  #1  
Old May 9, 2011, 03:22 PM
mkellam
 
60 posts · Jan 2011
Hi,
I'm trying to add Adsense code below the Title on single post pages only.

In ATO> Style & Edit Center Column, "The Loop", I tried to add the code between the post_byline and post_bodycopy php statements. This does add the ad below the Title, but also adds it to the Front page of our site under each of the excerpt titles. The front page is set up to show one single post and post excerpts after that.

How might I accomplish this?

Thanks!

Michael
  #2  
Old May 9, 2011, 03:39 PM
juggledad's Avatar
juggledad
 
23,649 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You will need to add a PHP conditional statement using the wordpress conditionals (see http://codex.wordpress.org/Conditional_Tags)
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old May 9, 2011, 03:51 PM
mkellam
 
60 posts · Jan 2011
Ahhh thanks! So if I also want an ad to appear every "Xth" item on category pages, I'd use a different conditional in the same place in "The Loop", right?
  #4  
Old May 9, 2011, 04:01 PM
juggledad's Avatar
juggledad
 
23,649 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
yup, look at the example, just count the posts.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding code for ads or other sites (newbie when it comes to code issues!) gardentravelbuzz Plugins & Atahualpa 7 Feb 7, 2011 04:43 AM
[SOLVED] Add Adsense section targeting code to single.php Stefan72 Center area post/pages 13 Nov 24, 2010 05:58 AM
Adding AdSense to content (3.4.4 and above) juggledad Center area post/pages 0 Jun 10, 2010 06:06 AM
Adding AdSense to content Jerry Atahualpa 3 Wordpress theme 51 Jun 10, 2010 05:48 AM
Adding Adsense Units in Atahualpa 3.4.1 djrishi Atahualpa 3 Wordpress theme 1 Aug 7, 2009 01:57 PM


All times are GMT -6. The time now is 04:09 PM.


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