Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Comments, trackbacks & pings (http://forum.bytesforall.com/forumdisplay.php?f=19)
-   -   adsense above comments (http://forum.bytesforall.com/showthread.php?t=3947)

Zed Oct 18, 2009 01:27 AM

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

juggledad Oct 18, 2009 05:01 AM

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>'); ?>

Zed Oct 18, 2009 11:03 AM

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

juggledad Oct 18, 2009 11:10 AM

put a condition on the statement - read the documentation on the page

Zed Oct 18, 2009 11:22 AM

umm sorry but i lost you on this

juggledad Oct 18, 2009 11:41 AM

Go to ATO->Style & edit CENTER COLUMN->The LOOP and read what it says...look at the examples

Zed Oct 18, 2009 11:46 AM

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??????

juggledad Oct 18, 2009 12:46 PM

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

Zed Oct 19, 2009 10:07 AM

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 06:40 AM.

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