How to widgetize two sidebars?
-
Hi, I’m widget newbie and I have a very strange problem. I have to widgetize two sidebars. In functions.php I have:
<?php if ( function_exists('register_sidebar') ) register_sidebars(2); ?>
and in sidebar.php:
<div id="side"> <div id="sideleft"> <ul> <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else : ?> ... <?php endif; ?> </ul> </div> <div id="sideright"> <ul> <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(2)) : else : ?> <?php endif; ?> </ul> </div> </div>
Please, where can be problem? In other theme which I downloaded from internet is this code working ??
Thanks a lot…
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How to widgetize two sidebars?’ is closed to new replies.