Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

[SOLVED] Add Adsense section targeting code to single.php


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
 
Prev Previous Post   Next Post Next
  #1  
Old Nov 19, 2010, 07:02 AM
Stefan72
 
8 posts · Oct 2010
[SOLVED] Add Adsense section targeting code to single.php

Another thread on the forum mentioned adding the code immediately below to the index.php as there is no single.php

<?php if ( is_single() ) { ?>
YOUR CODE HERE
<?php } ?>

The code I need to add is

<!-- google_ad_section_start -->

<!-- google_ad_section_end -->

In the middle of Google's 2 lines of code I also need to have the code that relates to the entire content of each post. I am new to coding and know it should look something like the_content() but not sure exactly.

Can you tell me what code in its entirety I need to add to index.php and where exactly I should put it?

Thanks very much.

Last edited by Stefan72; Nov 19, 2010 at 07:06 AM.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to put code in loop with instruction for single.php? annsworld Center area post/pages 5 Dec 1, 2012 10:52 PM
How to add PHP to the loop on multi- and single post pages only? Fux Center area post/pages 2 Jun 16, 2010 05:55 AM
Add code after post text but before the tags section Wonderbaum Post-Kicker, -Byline & -Footer 2 May 22, 2010 07:02 PM
How to add php code to a 'single' page JakeThePeg Center area post/pages 8 Mar 21, 2010 02:21 AM
Executing PHP Code in "HTML Inserts Header" Section twola Forum How-To 1 Sep 30, 2009 05:51 AM


All times are GMT -6. The time now is 03:12 PM.


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