I'm trying to modify the functions.php file of a wordpress theme so that I can style my widgets easier. The theme I have has two sidebars.
The original code for my functions.php is as follows:
<?php
if ( function_exists('register_sidebar') )
register_sidebars(2);
?>
I have changed it to the code shown below. If works fine for the first sidebar but the second sidebar no longer shows up on my blog.
I don't know how or where to change the below code so that it works with the second sidebar that I believe is called from the original code above as register_sidebars(2).
Would someone be able to assist me. Below is the new code I am using. Where should I be inserting register_sidebars(2)
Thank you
if ( function_exists('register_sidebar') )
register_sidebar(array(
'before_widget' => '<div class="widgy"><li id="%1$s"
class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h2 class="widgettitle">',
'after_title' => '</h2>',
));