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 » Comments, trackbacks & pings »

adsense above comments


  #1  
Old Oct 18, 2009, 01:27 AM
Zed
 
23 posts · Sep 2009
hi, i want to add adsense code just before the comments start on single post pages, or may be add a widget area above the comments... how is it possible? please help

atahualpa 3.4.4
wp 2.8.3
  #2  
Old Oct 18, 2009, 05:01 AM
juggledad's Avatar
juggledad
 
23,648 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Well if you don't mind it being above the 'footer' line, you could just add a new widget area in 'The LOOP' just above the line
HTML Code:
<?php bfa_post_footer('<div class="post-footer">','</div>'); ?>
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Oct 18, 2009, 11:03 AM
Zed
 
23 posts · Sep 2009
when i am adding a new widgte area in the loop above the footer, then the widget area appears on home page also, i just want it to show on single post pages
  #4  
Old Oct 18, 2009, 11:10 AM
juggledad's Avatar
juggledad
 
23,648 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
put a condition on the statement - read the documentation on the page
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Oct 18, 2009 at 11:39 AM.
  #5  
Old Oct 18, 2009, 11:22 AM
Zed
 
23 posts · Sep 2009
umm sorry but i lost you on this
  #6  
Old Oct 18, 2009, 11:41 AM
juggledad's Avatar
juggledad
 
23,648 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Go to ATO->Style & edit CENTER COLUMN->The LOOP and read what it says...look at the examples
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Oct 18, 2009, 11:46 AM
Zed
 
23 posts · Sep 2009
ok so i have put something like this

<?php if ( is_front_page() AND $bfa_ata['postcount'] == 3 ) { ?>

This here will be displayed after the 3rd post on (only) the homepage.

<?php } ?>

to show adsense ads only on single post pages, but what do i replace <?php if ( is_front_page() with? sinple_post_page??????
  #8  
Old Oct 18, 2009, 12:46 PM
juggledad's Avatar
juggledad
 
23,648 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
take a look at http://codex.wordpress.org/Conditional_Tags these are the WordPress conditional tags.

If your going to start getting fancy, you need to start looking at WordPress and understanding how it works. This will help you figure out things in the future
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #9  
Old Oct 19, 2009, 10:07 AM
Zed
 
23 posts · Sep 2009
thanx alot juggledad, i'l definitly look into it, in the mean time i greatly appreciate your help. take care

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add adsense pilsen1 Header configuration & styling 22 Oct 12, 2009 12:43 PM
[SOLVED] BUGFIX - 343 - Comments show 'Leave a Comment' even when comments are clos juggledad Old Version fixes and change logs 1 Sep 29, 2009 07:07 PM
Inline Comments - I have code, but the comments aren't displaying thekaitlin Comments, trackbacks & pings 0 Jul 29, 2009 02:28 PM
Javascript, Adsense, RSS, and Comments Jerry RSS, Feeds & Subscribing 3 Mar 25, 2009 12:16 PM
On comments page for post Leave a Reply and comments are white daisy24 Comments, trackbacks & pings 4 Feb 19, 2009 06:40 AM


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


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