In functions.php, if you’re already widgetized you’ll find this (if not add it):
if ( function_exists('register_sidebar') )
register_sidebar();
To do multiple sidebars you’ll need this, too:
if ( function_exists('register_sidebars') )
register_sidebars(2);
The (2) represents your 2 sidebars. If you want 3, put in 3, and so on.
Now in your sidebar.php, we’re going to mess with the code a bit. Where you currently find:
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
Replace with this:
<?php if (is_home()) {
if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else :
} else {
if ( function_exists('dynamic_sidebar') && dynamic_sidebar(2) ) : else : } ?>
//Put in stuff that'd show in case of no widgets
<?php endif; ?>
I’m sure there’s a cleaner way to do it, but…
- dynamic_sidebar(1) will show on your home page and
- dynamic_sidebar(2) will show on every other page
At least it should. Haven’t tried it. Hope it works.