adsense above comments
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 |
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>'); ?> |
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
|
put a condition on the statement - read the documentation on the page
|
umm sorry but i lost you on this
|
Go to ATO->Style & edit CENTER COLUMN->The LOOP and read what it says...look at the examples
|
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?????? |
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 |
thanx alot juggledad, i'l definitly look into it, in the mean time i greatly appreciate your help. take care
|
All times are GMT -6. The time now is 12:38 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.