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 »

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

Prev Previous Post   Next Post Next
Old Nov 19, 2010, 06:02 AM
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() ) { ?>
<?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 06:06 AM.


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 09: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 04:55 AM
Add code after post text but before the tags section Wonderbaum Post-Kicker, -Byline & -Footer 2 May 22, 2010 06:02 PM
How to add php code to a 'single' page JakeThePeg Center area post/pages 8 Mar 21, 2010 01:21 AM
Executing PHP Code in "HTML Inserts Header" Section twola Forum How-To 1 Sep 30, 2009 04:51 AM

All times are GMT -6. The time now is 07:47 PM.

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