Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Plugins & Atahualpa (http://forum.bytesforall.com/forumdisplay.php?f=16)
-   -   [SOLVED] Atahualpa Widget Areas: On home page only, not other pages? (http://forum.bytesforall.com/showthread.php?t=9089)

quintero Aug 21, 2010 09:00 PM

[SOLVED] Atahualpa Widget Areas: On home page only, not other pages?
 
I have a widget area placed just before the loop. I'd like for this widget area to appear only on the home page, and not on post pages, category pages, etc. Is there a way to do this?

I used this code to place the widget area before the loop:
?php bfa_widget_area('name=My new widget area'); ?

Thanks in advance!

lmilesw Aug 21, 2010 09:38 PM

Try something like this.
<?php if( is_home() ) bfa_widget_area('name=My new widget area'); ?>

quintero Aug 22, 2010 08:00 AM

That worked beautifully. Thank you.


All times are GMT -6. The time now is 07:30 AM.

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