[SOLVED] How do I restrict which pages my custom sidebars show-up on?
:confused:
I decided to create 4 additional sidebars for my static front page (for custom linked categories that link to a unique page), so I basically took a short-cut and used my footer widget (that has four columns), modified the width, and added it in the content_below_loop section. The columns display perfectly, but they are also showing up on ALL of my pages. How do I restrict which pages my custom sidebars/widgets show-up on? Thanks, Rachel |
put a php if statement around - go here to see the tests you can use - http://codex.wordpress.org/Conditional_Tags
|
Quote:
<?php if (!is_home()) {?> <?php bfa_widget_area('name=My widget area&cells=4&align=1&align_2=9&align_3=7&width_4=1 65&before_widget=<div id="%1$s" class="header-widget %2$s">&after_widget=</div>'); ?> <?php }?> So, I wrapped the code in the conditional tag but it didn't work. I also tried <?php if (!is_front_page.., but the widgets didn't show up at all. I also tried removing the <?php from before bfa_widget_area, but doing that disabled my widgets as well. Is there something in the widget code that I need to add or change? Thanks again for your help, Rachel |
the statement
HTML Code:
<?php if (!is_front_page.. HTML Code:
<?php if (is_front_page.. |
THANK-YOU! It worked. You are awesome "juggledad".
|
All times are GMT -6. The time now is 12:26 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.