Adding Extra Sidebar to your WordPress Theme

      4 Comments on Adding Extra Sidebar to your WordPress Theme

Here’s a sweet little exercise on adding a sidebar to a wordpress theme.

You like a WordPress theme on the Internet but Oh!… What’s this?? The theme has only one sidebar! You need more than one and are on the verge of switching to some other theme with more sidebars. But wait!! Let me teach you how to add an extra sidebar or sidebars to your favorite theme. People who know PHP will find it easy to follow but even novices can easily do it using the code that I have provided in this tutorial. I am assuming that you already know HTML and a bit of CSS.

To begin the tutorial, extract your theme into a folder and open it to see all the files. If your theme has only one sidebar, then most probably you will NOT find a file called functions.php in your theme folder. In that case you will have to create this file yourself. Just open notepad or any other code editor to start a new file. Put this code into that file :-

<?php
if ( function_exists('register_sidebars') )
    register_sidebars(2);
?>

(more…)

Adding Extra Sidebar to your WordPress Theme

Jai

Sat, 24 Nov 2007 01:58:21 GMT

[tags]blog, wordpress, themes[/tags]

4 thoughts on “Adding Extra Sidebar to your WordPress Theme

  1. Eric Marantan

    I am looking for this same problem on how to add sidebar to your wordpress.. Some information was helped me.. and also to this article.. I can add my extra sidebar now..

    Thank you for this articles..

    Eric Marantan's Recent post…Midway CheckPoint Winner of the Busby SEO Test

  2. Pingback: Top list – April

Comments are closed.