There are times when you want to display widgets on other locations than
your default sidebar. With such high demand for this hack, we will be
sharing how you can create multiple dynamic sidebars that are widget
ready for your WordPress blog. There are some plugins that will require
you to use the widget only, or in some cases widget is what you feel
comfortable with then this is the hack for you.
For this we need to add the following code to PHP /html editor in html mode which will generate the orignal code and then copypaste it in functions.php
Now Use this Snippet to get it on any site
For this we need to add the following code to PHP /html editor in html mode which will generate the orignal code and then copypaste it in functions.php
<?php
if ( function_exists('register_sidebar') )
register_sidebar(array(
'name' => '
Left Sidebar
',
'before_widget' => '',
'after_widget' => '',
'before_title' => '<h2>',
'after_title' => '</h2>',
));
if ( function_exists('register_sidebar') )
register_sidebar(array(
'name' => 'Right Sidebar',
'before_widget' => '',
'after_widget' => '',
'before_title' => '<h2>',
'after_title' => '</h2>',
));
?>
Now Use this Snippet to get it on any site
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Left Sidebar") ) : ?>Default left sidebar stuff here�
<?php endif; ?>
Read More →