Step 1: Creating Sidebars
Since Blass2 only has one sidebar, we need to add a second. To bring a sidebar into existence, it must be registered. So, think of Functions.php as a sort of sidebar nursery. This is where it all begins. There are many variations of the code to register a sidebar, but this is fairly common:
if ( function_exists('register_sidebar') )
register_sidebar(array(
));
Every theme I’ve run across has some form of sidebar registration, even one theme I noticed which doesn’t even use sidebars! The above code will create the single sidebar in two-column themes, like Blass2, “two column” meaning a content column and a single sidebar column.
Go into the Appearance/Editor and open the functions.php template. There you will see the above code. We will alter this code by adding a single line, the ‘name’ line, third from the top. Your finished function should look like that below.
if ( function_exists('register_sidebar') )
register_sidebar(array(
'name'=>'LeftThinSB',
));
Copy the code you just entered and paste it below that first set. This time, make that bolded line:
'name'=>'RightThinSB',
Update the functions.php file. We have just given birth to two new sidebars.
To see the results of the above actions, head on over to Appearance/Widgets. You should see what looks like the picture at the left. Notice there is no longer a Sidebar1. We made it “LeftThinSB” and we added the second, “RightThinSB”. Also, notice that in the absence of the default, WordPress transferred the Sidebar Login plugin to the next available sidebar.
The presence of these two sidebars in Widgets are proof of their creation in that functions.php file.