Widgitzed Sidebars
-
I’m using some if thens to make my sidebars different for each page.. Problem I run into is that the home page doesn’t want anything to do with it.
Here’s part of the sidebar statement:
if(is_home() || is_front_page()) { if (!function_exists('dynamic_sidebar') || !dynamic_sidebar( 'home') ) { $generic_sidebar = true; } } elseif ( is_tree('about') ) { if (!function_exists('dynamic_sidebar') || !dynamic_sidebar( 'about') ) { $generic_sidebar = true; } } ...etc
And the functions:
if ( function_exists('register_sidebars') ) { register_sidebar(array('name'=>'home')); register_sidebar(array('name'=>'about'));
So I’m not sure really how to use the if_home and the is_tree together..
The sidebars on the pages work, but the home page refuses to work. Can anyone help??
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Widgitzed Sidebars’ is closed to new replies.