WordPress Themes Blog Oh! Blog

Share on Facebook16Tweet about this on Twitter25Share on Google+1Pin on Pinterest1Share on LinkedIn0

Oh!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.

Working Hard!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);
?>


Save the file as functions.php and put it in your theme folder. This piece of code actually tells WordPress to register two sidebars for you (See register_sidebars(2) in the code). If your theme has more than one sidebar, you will find the functions.php file already present in your theme folder. You just have to edit the number to your requirement and save the file. You can increase this number if you want more sidebars and if your theme’s layout can accommodate it. Now, when you go to your WordPress admin section and browse to the widgets under the menu item called presentation, you will see two sidebars listed there. You can drag your widget items into any of the sidebars.

Now comes the part where we actually build the sidebars. If your theme has only one sidebar, try to locate a file called sidebar.php in your theme folder. In this example, where we are trying to modify the theme for two sidebars, let’s rename sidebar.php to sidebar1.php and make a new blank file called sidebar2.php. Put this code into sidebar2.php and save the file :-

  <ul>
    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(2) ) : else : ?>
    <li>
      <h2>
        <?php _e('Categories'); ?>
      </h2>
      <ul>
        <?php wp_list_cats('sort_column=name&hierarchical=0'); ?>
      </ul>
    </li>
    <li>
      <h2>
        <?php _e('Archives'); ?>
      </h2>
      <ul>
        <?php wp_get_archives('type=monthly'); ?>
      </ul>
    </li>
    <?php endif; ?>
  </ul>

So, we have the two sidebars ready but they have not been placed in the index.php file yet. Both these sidebars need to be called from the index.php file in order to include them in your theme. Just open the index.php file from your theme folder and locate the code that calls your sidebar file (sidebar.php earlier). It should look something like :-

<!--?php include (TEMPLATEPATH . '/sidebar.php'); ?-->

Edit this code and change the words sidebar.php to sidebar1.php.

Here you go!This takes care of the first sidebar. Now take a look at the index.php file carefully and find a suitable place to insert the second sidebar. This might involve modifying your layout or adding new divs. Once you find a suitable place, place the following code there :-

<!--?php include (TEMPLATEPATH . '/sidebar2.php'); ?-->

Save the index.php file and now preview your theme. You will see all the widgets that you placed in both your sidebars appearing on your website. If you have not placed any widgets yet, you will not see any change. There might be alignment errors but you will have to fix them yourself. You can add more sidebars in a similar way to your WordPress theme. I hope this tutorial helps some of you.

DIGG this tutorial!

Share on Facebook16Tweet about this on Twitter25Share on Google+1Pin on Pinterest1Share on LinkedIn0
  1. Alan Jones left a comment on April 24, 2015 at 11:58 am |

    Thank you! Works perfect, like a charm!

  2. karthiga left a comment on April 9, 2015 at 8:52 am |

    How to add sidebar in WordPress theme-5 Easy & Quick steps to add extra sidebar explained in my blog.
    http://www.vistaunderthesun.com/how-to-add-sidebar-in-wordpress/

  3. stair parts minneapolis left a comment on January 11, 2015 at 7:13 am |

    Think that a stairs have mislaid their former glory. I hope the answers and questions is
    going to be necessary to you. This means that you can invest some time and spread the
    project out over months and years as an alternative to attempting to cram everything in and find
    it over with.

  4. xbox live gold za darmo 2015 left a comment on January 7, 2015 at 8:03 am |

    Magnificent items from you, man. I’ve be mindful your stuff previous to and you are just too great.
    I actually like what you’ve bought here, certainly like what you’re saying and the best way by which
    you are saying it. You are making it enjoyable and you still care for
    to stay it sensible. I can not wait to learn much more from you.
    That is actually a terrific site.

  5. Denyce Nikole left a comment on December 31, 2014 at 2:01 am |

    How in the world do I add a sidebar to a functions.php that does NOT already have 1 at all? nor a sidebar.php?

    Specifically to the blog section of this theme: http://demo.enginethemes.com/oneengine/

  6. etiquette no gifts requested left a comment on December 30, 2014 at 1:26 am |

    However, there is an advantage, the cell maintain time is certainly longer than smartphones.
    Reply to each question to the best of your capability.

    We thought we’d skirted it because, when we got engaged,
    we barely knew anyone with kids under 10.

  7. Bogowie zobacz online za darmo 2014 left a comment on November 21, 2014 at 8:09 pm |

    I do trust all of the ideas you have presented on your post.

    They’re very convincing and will definitely work.
    Nonetheless, the posts are very quick for beginners.
    May you please lengthen them a bit from subsequent time? Thanks for the post.

  8. Yaniv left a comment on November 8, 2014 at 12:46 pm |

    Thank you very much!

  9. Yaniv left a comment on November 8, 2014 at 12:39 pm |

    Really helpful information , thank you!

  10. smoke left a comment on November 8, 2014 at 7:45 am |

    Several factors can cause excess fuel to end up in the combustion chambers.
    Of the three types of smoke you may see coming from your
    car’s tailpipe, this type should cause the least amount of concern. Sophisticated equipment,
    ample training and various restoration solutions can be handled effectively by smoke damage restoration companies.

  11. Jayho left a comment on October 16, 2014 at 5:18 am |

    Thanks for this great work. I appreciate it. I have been searching for this for a long time.
    Proffesional and useful. Very nice job and good work. I am a dentist and this is a good stuff to read for me and for anyone who has the interest in this kind of knowledge and scince.
    I have learned very much and have got useful knowledge, that I can use in my life.
    I am going to be a daily visitor to your site of this website. I just wanted to say that I appreciate your blog and am looking forward for more to come (I don’t know how often you are used to write and how often you post).
    I Thank you for spending the time to discuss this, and giving us the opportunity to learn. I feel strongly on this and love reading ekstra about the subject. I hope that there are others who share the same view as me.
    I am definatly coming back dayly to see more and to learn more and to know more.
    I am happy for being a part of this wonderful blog.
    Keep up the good work and best regards and best wishes.

  12. Jayho left a comment on October 16, 2014 at 5:14 am |

    I thank you from my heart for this great post.
    Very professional and useful. I have been searching for this for a long time. Best egards and wishes.

  13. https://www.facebook.com/angrybirdstransformershack left a comment on October 14, 2014 at 11:09 pm |

    For most recent news you have to go to see world-wide-web
    and on web I found this web page as a finest web site for most recent updates.

  14. desain model rumah minimalis left a comment on October 14, 2014 at 1:11 am |

    That is really attention-grabbing, You’re a very professional blogger.
    I have joined your feed and sit up for in quest
    of extra of your wonderful post. Also, I have shared your web site in my social networks

  15. carpet cleaners orem left a comment on October 1, 2014 at 2:15 pm |

    Hey there would you mind letting me know which web host you’re utilizing?
    I’ve loaded your blog in 3 completely different internet
    browsers and I must say this blog loads a lot quicker then most.
    Can you recommend a good hosting provider at a reasonable price?
    Thanks a lot, I appreciate it!

  16. Nila left a comment on October 1, 2014 at 12:31 am |

    Como ves, en coste Hostgator gana a WebEmpresa, pero veamos otro tema donde la cosa
    no está tan clara. Cuenta con un panel muy agradable de cPanel, Se trata de un mejor control de hosting.

  17. www.besttorontoescort.Com left a comment on September 26, 2014 at 6:32 am |

    Hi there, I think your website may be having browser compatibility issues.

    Whenever I take a look at your web site in Safari, it looks fine however when opening in I.E., it’s got some overlapping issues.

    I just wanted to give you a quick heads up! Besides that,
    wonderful blog!

  18. apk de pulgas todo sobre android left a comment on September 22, 2014 at 3:20 pm |

    Hello! I’m at work browsing your blog from my new iphone 4!
    Just wanted to say I love reading your blog and
    look forward to all your posts! Keep up the
    great work!

  19. bouncy horse left a comment on September 22, 2014 at 2:08 am |

    Right now it seems like WordPress is the best blogging platform available right now.

    (from what I’ve read) Is that what you are using on your blog?

  20. twitter left a comment on September 21, 2014 at 12:15 am |

    I’ve been exploring for a bit for any high quality articles
    or weblog posts on this kind of area . Exploring in Yahoo
    I finally stumbled upon this site. Reading this info So i am happy
    to show that I’ve an incredibly just right uncanny feeling I discovered exactly what I needed.
    I most indubitably will make certain to don?t overlook this website and give it a glance regularly.

  21. xbox live code generatorabonnement xbox live gold left a comment on September 20, 2014 at 9:50 pm |

    I savor, result in I discovered just what I used to be looking for.
    You have ended my four day long hunt! God Bless you man. Have a nice day.
    Bye

  22. Occhiali Da Sole Oakley left a comment on September 20, 2014 at 8:12 pm |

    I don’t even know how I ended up here, but I thought this post was good.
    I do not know who you are but definitely you are going to a famous blogger if you are not already 😉 Cheers!

  23. Inez left a comment on September 14, 2014 at 3:36 pm |

    I read a lot of interesting content here. Probably you spend a lot of time writing, i know how to save
    you a lot of work, there is an online tool that creates
    readable, SEO friendly posts in seconds, just type in google – laranitas free content source

  24. Jestine left a comment on September 11, 2014 at 3:05 pm |

    Thanks for sharing your thoughts. I really appreciate your efforts
    and I am waiting for your next write ups thank you once again.

  25. Mero Server International left a comment on August 25, 2014 at 12:40 am |

    That’s Great It’s working Thanks for your Post .

  26. Bridget left a comment on August 19, 2014 at 4:23 pm |

    This design is steller! You definitely know how to keep
    a reader entertained. Between your wit and your videos, I was almost moved to start my own blog
    (well, almost…HaHa!) Wonderful job. I really enjoyed what you had to say, and more than that, how you presented it.
    Too cool!

  27. Tom Stone left a comment on August 13, 2014 at 2:25 am |

    Thanks for this informative post! I am going to try it on my site:

    curry shrimp pasta

  28. bouncy castle hire london left a comment on August 11, 2014 at 1:27 pm |

    I do not even know how I ended up here, but
    I thought this post was great. I don’t know who you are but definitely
    you are going to a famous blogger if you are not already 😉 Cheers!

  29. microvolts rt hack left a comment on August 3, 2014 at 8:51 am |

    I used to be able to find good advice from your blog articles.

    my blog post; microvolts rt hack

  30. Debora left a comment on July 21, 2014 at 7:46 am |

    Financial ControlIn this article I’ll school bus be concentrating on the weather.

    The project has different reasons, the homeowner can save you money because you
    run or prepare on jogging a business model and color options.

    After which the contractor to start. There are school bus
    Los Angeles. So there shouldn’t be in your” Kitchen planning remodelling”
    it had really been provided by PWC to China.

    My site: web site (Debora)

  31. football left a comment on July 13, 2014 at 6:39 pm |

    He’s not desperately trying to look like a big
    shot. Most online football managers give you a team when you sign up and you’re stuck with them forever, no matter how well you do.
    There are some excellent websites that offer live
    football matches, as well as live match scores, for one low price.

  32. Roberto left a comment on March 17, 2014 at 1:38 pm |

    What if the site already has more than one side bar but you’d like to say add another right sidebar to use for a different page?

  33. Mike left a comment on March 17, 2014 at 1:20 pm |

    Hey and first off thanks for the post.
    Is there a way to register which sidebar is which?

    So we can use “get_sidebar” instead of “include”.

    Like adding the sidebar templatepath somewhere else, like maybe functions.php and then using get_sidebar (1) or get_sidebar (2)

  34. http://diningtalbot.com left a comment on March 17, 2014 at 11:38 am |

    Hi, i feel that i saw you visited my web site so i got here to go back the desire?.I am attempting to to find things to enhance my
    web site!I suppose its ok to use a few of your
    ideas!!

    Here is my web page: tribble (http://diningtalbot.com)

  35. paste code into word left a comment on March 14, 2014 at 2:22 pm |

    Ahaa, its good discussion regarding this piece of
    writing at this place at this web site, I have
    read all that, so now me also commenting here.

  36. Lavtova left a comment on March 9, 2014 at 3:37 am |

    It’s very nice info. Thanks fpr sharing

  37. new lebron shoes 2013 left a comment on March 7, 2014 at 12:06 pm |

    You actually make it seem really easy together with your presentation but I find this matter to be actually
    something which I believe I would by no means understand.
    It seems too complicated and very wide for me.
    I’m looking ahead on your next submit, I’ll attempt to get the hold of it!

  38. Thomas left a comment on February 17, 2014 at 5:00 am |

    This is really valuable information, if you have to work with WordPress yourself!

  39. Tom left a comment on February 10, 2014 at 5:09 am |

    Wow, it’s that simple, I used to hire a designer to do that…

  40. Amazon reiviews left a comment on December 12, 2013 at 3:58 am |

    Thanks for the info, I was also trying to add sidebar to my site. The default theme has only 1 sidebar, I want to add left sidebar also. I will try this,

  41. Lodhy left a comment on November 11, 2013 at 5:07 am |

    Thanks for the nice Post, but i have a problem i can not see the codes.

  42. Winfred left a comment on October 25, 2013 at 2:48 pm |

    fantastic put up, very informative. I’m wondering why the other specialists of this sector don’t notice this. You should proceed your writing. I’m sure, you’ve a huge readers’ base already!

  43. Direct Response Group left a comment on August 2, 2013 at 12:46 am |

    Thanks for sharing this tutorial.

  44. my pham khuyen mai left a comment on July 29, 2013 at 1:29 pm |

    and vitamins, promoting gorgeous growth and true thickness.
    You can also dust it on with a brush over your liquid foundation for a matte
    finish. There are no harsh or impossible to pronounce chemicals, just
    the simple goodness of nature.

    Also visit my web page; my pham khuyen mai

  45. Post-Panda Era left a comment on June 28, 2013 at 4:26 pm |

    Thanks to my father who shared with me regarding this website, this blog is really remarkable.

  46. Secretstory7 left a comment on June 9, 2013 at 1:01 pm |

    Thank you…

  47. Read Full Article left a comment on May 21, 2013 at 3:18 am |

    Thanks a ton for sharing your great internet site.

  48. All of Themes left a comment on May 3, 2013 at 8:47 pm |

    Thanks for tip!

  49. John left a comment on April 29, 2013 at 2:09 pm |

    Great article, I’m glad i stumbled upon this.

  50. Ida left a comment on April 21, 2013 at 3:35 am |

    Greetings from Florida! I’m bored to death at work so I decided to check out your site on my iphone during lunch break. I love the knowledge you provide here and can’t wait
    to take a look when I get home. I’m surprised at how fast your blog loaded on my mobile .. I’m not even using WIFI, just
    3G .. Anyhow, good site!

  51. Thomas Leitch left a comment on March 31, 2013 at 8:33 pm |

    Hey – I think this post might be exactly what I’m looking for but not sure…if you could take a look at my client’s site – http://www.sahrarenata.com – I’m wanting to put images down each side of the entire content, from logo and menu all the way down to the footer…I tried putting the index php into a table but it wasn’t consistent…with the method above, can I insert images on both sides of the entire content without affecting the width or layout as it currently stands?

  52. Free Softwares left a comment on March 24, 2013 at 8:23 am |

    Nice post, really helpful..

  53. Output Marketing left a comment on February 7, 2013 at 1:52 pm |

    Excellent information. I will be testing this out on my website very soon.

  54. alexdombroff@alexanderdombroff.com left a comment on January 12, 2013 at 9:31 am |
  55. danielle left a comment on December 20, 2012 at 1:46 pm |

    The first part of the tutorial is great, but in the parts where you say “put this code in there” there is no code showing.. I’m not sure why! :( This seems like a great tutorial and I would love to finish!

  56. riza left a comment on December 15, 2012 at 3:06 am |

    this is realy great i want try…but if i wrong to drop script what happen to my blog?explain, thank

  57. http://how2getyourgirlfriendback.com left a comment on December 10, 2012 at 7:02 pm |

    I am really impressed with your writing abilities and also with the structure
    on your blog. Is this a paid topic or did you customize it your self?
    Anyway stay up the excellent quality writing, it is rare to look a great blog like this one these days.
    .

  58. sell backlinks left a comment on December 5, 2012 at 2:29 pm |

    If you wish for to get a good deal from this article then you
    have to apply such methods to your won weblog.

  59. abhay left a comment on December 5, 2012 at 6:58 am |

    how to print extra sidebar………..

  60. Risma left a comment on December 3, 2012 at 2:51 am |

    Terimakasih banyak atas informasinya..!
    salam kenal dan semoga sukses :)
    informasi yang sangat bermanfaat.

  61. Poner Anuncios left a comment on November 27, 2012 at 5:56 am |

    Thank you very much for this article!

    Christian.

  62. Dvdrip left a comment on November 24, 2012 at 7:37 pm |

    I’ve changed right to left in css file.

  63. Binary Trading left a comment on November 20, 2012 at 1:35 am |

    Hey,

    Thank you very much for this article! you help me a lot!

  64. neil left a comment on October 19, 2012 at 1:45 pm |

    if any of you guys get critical errors you’ll have to edit the files manually using your web host’s file manager, and undo whatever you did

  65. wordpress Guide left a comment on September 3, 2012 at 1:25 am |
  66. Flaviu Simihaian left a comment on September 1, 2012 at 12:32 pm |

    You said you show code. Y U NO CODE?

  67. Arbudi left a comment on August 31, 2012 at 8:31 am |

    Thanks for this great sidebar tutorial, easy to follow the step by step guide.

  68. kunal left a comment on August 10, 2012 at 1:54 am |

    why cant i see some of the codes??

  69. starfall left a comment on August 8, 2012 at 10:30 pm |

    I just added new sidebar for my theme. thanks a lot admin. great post, really helpful!

  70. djzawacki left a comment on August 5, 2012 at 12:06 pm |

    What if there are NO sidebars?

  71. Andy left a comment on July 30, 2012 at 2:52 pm |

    what should i do now!!!!

    ”””Parse error: syntax error, unexpected ‘(‘ in /home/andi32/public_html/wp-content/themes/piggie-bank/functions.php on line 6”””’

    PLEASE HELP!!! I’M STUCK!

  72. Sarif left a comment on June 24, 2012 at 11:04 am |

    Nice article but I cound not find the description for %1$s and $2$s that goes before widget in standard technique. I got some information on it in this link http://devotepress.com/coding/registering-sidebar-wordpress/

  73. sam left a comment on April 25, 2012 at 3:22 pm |

    cant see the code, what happened

  74. PPC Campaign Generator left a comment on April 15, 2012 at 3:30 pm |

    Why are the blue boxes blank? Is there supposed to be code in there or what? Really not helpful.

  75. david left a comment on April 4, 2012 at 2:58 am |

    Can’t see the codes in the blue bars. Can anyone help? Cheers.

  76. julia left a comment on March 28, 2012 at 9:03 am |

    This keeps happening!
    Parse error: syntax error, unexpected T_IF, expecting ‘)’ in /home/wjournal/public_html/wp-content/themes/lehigh/functions.php on line 387

  77. Julia left a comment on March 28, 2012 at 8:54 am |

    My theme does have a function.php folder, but it only has one sidebar. What do I do?

  78. Julia left a comment on March 28, 2012 at 8:51 am |

    Where is the theme folder?

  79. HImu left a comment on March 24, 2012 at 12:30 pm |

    I am happy to learn it

  80. US Hosting left a comment on March 21, 2012 at 1:36 am |

    very useful.Thank you.

  81. Sarah Flynn left a comment on March 20, 2012 at 10:47 pm |

    I want to change the layout of my homepage columns. Do I do this is the home.php file? The theme I’m using is from StudioPress the Corporate theme, it doesn’t have an option of the layout i want for the homepage. I want a 2/3 column at the top lest, another 2/3 column under that to the left, to the right I want a 1/3 column that’s height is the total of the two columns to the left, then I want a footer colunm under all this the entire width of the page. I don’t know PHP.

  82. Web Designer Nepal left a comment on February 28, 2012 at 11:23 pm |

    thank you for this great tutorial
    We were really looking for this since long. Thanks.

  83. Lamine Kacimi left a comment on February 26, 2012 at 11:22 am |

    I have been searching for this for so long, Thanks for the straight forward explanation.

    • Alwin left a comment on February 27, 2012 at 6:32 am |

      Can’t see the codes

      Can you please copy the codes in a comment? I can’t see the codes as the blue boxes appears to be empty. I’m following the part where I just renamed the sidebar.php file.

      Thanks

  84. balanza sartorius left a comment on February 17, 2012 at 2:54 pm |

    […]Here is an excellent Blog You might Obtain Fascinating that we Encourage You[…]

  85. Australia translators left a comment on February 12, 2012 at 9:53 am |

    […]just beneath, are many entirely not connected internet sites to ours, however, they are surely worth going over[…]

  86. Newssite left a comment on February 12, 2012 at 2:57 am |

    @Helgi, the boxes are not empty. There is code for the sidebars, my concerns is that they appear at the bottom and not on the sides. How could I rectify this?

  87. Guillermo left a comment on February 11, 2012 at 4:38 am |

    This was really an excellent tutorial. Thanx :)

  88. Business I.T. Support left a comment on February 10, 2012 at 10:45 pm |

    Thank you I needed this for the wordpress site I am building, this was a great help, thank you :)

  89. helgi left a comment on February 10, 2012 at 7:27 am |

    How can I see your code?? the boxes is empty ???

  90. Newssite left a comment on February 10, 2012 at 12:07 am |

    Hi,
    How do make my sidebars to move to the right positions (i.e. left and right). Right now they appear at the bottom of the site. This is my news site: http://seniorjournalism.com . Please help guys.

  91. car wont start clicking noise left a comment on February 9, 2012 at 4:56 am |

    […]Wonderful story, reckoned we could combine some unrelated information, nevertheless definitely worth taking a search, whoa did one discover about Mid East has got much more problerms as well […]

  92. best working diet pills left a comment on February 6, 2012 at 2:50 am |

    […]Here are a number of the internet sites we advocate for our visitors[…]

  93. Popcorn Design left a comment on January 27, 2012 at 7:25 am |

    Thank you, your tutorial saved me a tonne of time, I was searching for how to do 2 sidebars for ages! Thanks

  94. Tasos left a comment on December 28, 2011 at 11:49 am |

    Hi,

    The theme I am using currently has a sidebar on the left, so there is a functions.php as you mention. However the code in there is a bit more… “complicated” so I don’t know what to change or insert. This is the code:

    ‘,
    ‘after_widget’ => ‘

    ‘,
    ‘before_title’ => ”,
    ‘after_title’ => ”,
    ));
    ?>

    So what do I need to insert in this case? Also, like other said, can you update your post because the code doesn’t show in the boxes?

  95. Subash Pathak left a comment on December 11, 2011 at 4:21 am |

    Good blog

    • Miles left a comment on December 20, 2011 at 5:46 am |

      Can you update to show the code please? It would usefuul to have the code!
      There’s no code in the boxes, not displayed, not in source code.

  96. hiamnshu left a comment on December 9, 2011 at 1:07 am |

    I could not see the code in the boxes. Could you please update the post. I need to see the code

  97. Code seeker left a comment on December 8, 2011 at 5:55 pm |

    Looks like I am not the only one looking for the code in the blue boxes. Can you please post in comments if you can see them?? Of maybe repost with code? Thanks!

  98. Mani left a comment on December 6, 2011 at 3:02 am |

    Where is code ? can anyone provide the code please.

  99. Tandklinik København left a comment on December 5, 2011 at 3:33 am |

    Thanks for the help. Just fixed my problem with my new WP theme

  100. Web Designing | Web Site Design left a comment on November 27, 2011 at 7:55 am |

    I’m not seeing the actual code to copy, in the boxes…
    can anyone help?

    • Marianne left a comment on November 28, 2011 at 6:49 am |

      When you look in the source code of the page you can find the code. A bit more complicated, but it is there.
      I could not see the code either in explorer, safari, firefox or google chrome.

  101. Web Designing | Web Site Design left a comment on November 27, 2011 at 7:53 am |

    can we use software to add sidebar wp?

  102. Larry left a comment on November 24, 2011 at 1:46 pm |

    Hi there, all your code comments are missing apart from the very first one and the one’s given in the comments. I have tried to use this tutorial in firefox 8 as well as chrome in Ubuntu and now the same thing is happening in firefox 8 and chrome in windows 7.

    • D left a comment on November 26, 2011 at 4:09 pm |

      This tutorial is so useful, what I have done so far works great.
      Unfortunately most of the code examples in the blue boxes are missing. Mac with Firefox 8. Can’t see it with Safari either. Please help! This is such a great tutorial otherwise. Thanks.

      • D left a comment on November 26, 2011 at 4:49 pm |

        Now comes the part where we actually build the sidebars. If your theme has only one sidebar, try to locate a file called sidebar.php in your theme folder. In this example, where we are trying to modify the theme for two sidebars, let’s rename sidebar.php to sidebar1.php and make a new blank file called sidebar2.php .Put this code into sidebar2.php and save the file:

        So, we have the two sidebars ready but they have not been placed in the index.php file yet. Both these sidebars need to be called from the index.php file in order to include them in your theme. Just open the index.php file from your theme folder and locate the code that calls your sidebar file (sidebar.php earlier). It should look something like :-

        Edit this code and change the words sidebar.php to sidebar1.php.
        This takes care of the first sidebar. Now take a look at the index.php
        file carefully and find a suitable place to insert the second sidebar.
        This might involve modifying your layout or adding new divs. Once you find a suitable place, place the following code there :-

        Save the index.php file and now preview your theme. You will
        see all the widgets that you placed in both your sidebars appearing on
        your website. If you have not placed any widgets yet, you will not see
        any change. There might be alignment errors but you will have to fix
        them yourself. You can add more sidebars in a similar way to your
        Wordpress theme. I hope this tutorial helps some of you.

      • karunakar left a comment on June 27, 2012 at 6:45 am |

        That was really very valuable information and today i have read a very good stuff here .

  103. Trinni left a comment on November 22, 2011 at 11:20 pm |

    The code is missing from the blue boxes

  104. EuroPlusCentre left a comment on November 20, 2011 at 11:34 pm |

    This is exactly what I`m looking. Thanks guys. You save my time for customizing my wordpress theme website.

  105. Anuncios Clasificados left a comment on November 18, 2011 at 11:37 pm |

    Very very cool. Thank you. very good explanation.

    John.

  106. Chris left a comment on November 18, 2011 at 12:44 am |

    How do I extract the files of my theme and open them into a new folder?

  107. Bisnis Hari Ini left a comment on November 16, 2011 at 10:18 pm |

    Kalau mau pesan, bisa dengan tranfer bank tidak …..

  108. Jenn left a comment on November 14, 2011 at 1:15 pm |

    I’m not seeing the actual code to copy, in the boxes… can anyone help?? Thanks…

    • Larry left a comment on November 24, 2011 at 11:32 am |

      I can’t see the code in the blue box-outs either! Am running firefox 8 in Ubuntu 11.10 If someone can help it would be great because right now, I really, really need this tutorial! Thanks!

  109. great left a comment on November 8, 2011 at 1:59 pm |

    great! I’ll use this on http://www.funstream.eu and that’s not only for fun

  110. asimovgxj left a comment on November 2, 2011 at 2:47 am |

    I’ve changed right to left in css file.

  111. twiggs left a comment on September 17, 2011 at 6:48 am |

    hello! my problem from the start is how to open and edit the php file, as i already have one sidebar + post area. i need two sidebars for sponsors! one other thing, assuming that i do all this, then i have to upload the theme again, right? for whom has changed all the editor file, that is not too easy… can you please give me some advice here? thank you!

  112. ayo left a comment on September 15, 2011 at 3:55 am |

    useful info..already implemented it on my blog.Thanks!

  113. www.usefulupdatez.com left a comment on September 10, 2011 at 6:42 am |

    awesome work dude .. but please work on your theme or your plugins .. it is loading very very slow … you will be ranked less by google .. golle as changed the algorithm … sorry for the advice …

    have a great day ..

  114. how to be a popular girl left a comment on September 8, 2011 at 2:16 pm |

    thanks for the tutorial, i need that to modify my blog, nice share 😀

  115. Cute Girl left a comment on September 8, 2011 at 12:49 am |

    thanks a lot, useful information anyway

  116. sanny left a comment on August 31, 2011 at 2:25 am |

    My pro is that i ‘ve no idea how to put the php code that include in every plugin to my wordpress theme ,pls can anybody help me

  117. Ueriotm left a comment on August 30, 2011 at 4:56 pm |

    Hi..

    Nice tutorial…but I have a question: what if I want to create a “sidebar” in the header? I wanna put a widget there but I can’t. Could you help me please?

  118. chandella left a comment on August 29, 2011 at 8:32 am |

    thank you so much for this tutorial. it helps me a lot

  119. WAO left a comment on August 27, 2011 at 6:36 am |

    I’m trying to do that with a RTL custom template but for some reason I cannot manage the second sidebar CSS (on page). Can somebody tell me why Classes or ID’s aren’t working?
    Anyway, Thanks for telling us about this modification.

  120. Kavita left a comment on August 20, 2011 at 9:55 am |

    Thanks for the tutorial. I would like to know about how to do the changes in layout and div tags to accommodate an extra sidebar.

  121. leah left a comment on August 16, 2011 at 8:43 pm |

    I am wondering what widget you used to have the double column sidebar for the advertisement section at the top right of your blog? Thanks In advance!

  122. marketing brighton, mi left a comment on July 15, 2011 at 12:54 pm |

    After study a few of the blog posts in your web site now, and I truly like your means of blogging. I bookmarked it to my bookmark website checklist and will likely be checking back soon. Pls try my web page as well and let me know what you think.

  123. Obat Untuk Diabetes left a comment on July 9, 2011 at 12:26 am |

    I am looking for the way to change the font color in my Mystique theme. still looking for it. could you help me?

  124. asad left a comment on June 28, 2011 at 9:19 pm |

    This is great

  125. Bahalap left a comment on June 15, 2011 at 4:26 am |

    Very nice…

    i have already do this for my theme…. thanks a lot

  126. yuliang photography left a comment on June 14, 2011 at 9:39 am |

    man, it’s so hard to write your own side bar

  127. Chaussures Converse left a comment on June 9, 2011 at 3:45 am |

    And while they acknowledge that this is causing harm to their brand they still aren’t answering any direct questions. As I mentioned in the Money Woes post there simply isn’t a legal reason for this. And I think Full Tilt has proven how BS this excuse is with their response to the Ivey lawsuit (also mentioned in the Money Woes post).

  128. souvenir pernikahan left a comment on June 1, 2011 at 8:36 am |

    Thanks very much for your nice tutorial. After reading this article I want to parctice add sidebar on my wordpress blog.May it can be success

  129. Tandtråd left a comment on May 29, 2011 at 4:23 pm |

    Great explanation, thx a lot!

  130. Stuffinn left a comment on May 28, 2011 at 11:54 am |

    really nice info..i like it Check out awesome theme here.

  131. Cara Membuat Blog left a comment on May 27, 2011 at 3:07 am |

    Thanks for the info. Your website is my first blog to get more information about wordpress. Making a side bar is great. Thanks a lot.
    Cara Membuat Blog

  132. Rob left a comment on May 23, 2011 at 4:13 am |

    This will help me a lot. I need different sidebars on different pages. I hope this will be the solution.

  133. Cybernautix Peter left a comment on May 15, 2011 at 6:25 am |

    Thanks for the info this helped me setup a second column on a theme that I really like but didn’t naturally have a second column in the code.

    Works a treat!

  134. Johannes Irfan left a comment on May 14, 2011 at 11:23 am |

    Greetings from Indonesia.
    I am looking for this for months, and now i find the way from you. thank ‘s alot.
    To remake theme is a passion.
    http://www.duniabaso.co.cc

  135. mojtaba left a comment on April 9, 2011 at 8:29 am |

    just thank u
    its clear and great.

  136. Giovani left a comment on April 5, 2011 at 4:10 am |

    This method works! takes a while to get it working, had to do a google search and bumped into the wordpress codex, which states the commands here.

    I think this method works most of the time when you are editing a theme that doesn’t have many theme files.

    Thanks

  137. CWD-web design left a comment on March 26, 2011 at 10:59 am |

    Cool. Thanks for this! I am trying to add items to my blog sidebar only. Right now, there is one sidebar in the theme and when I add things to it, it adds them to static pages as well as the blog. How can I add items to the blog sidebar only? Thanks!

  138. Som left a comment on March 21, 2011 at 1:13 am |

    Nice information .Actually, I use twenty theme and was thinking to have more sidebars in my theme . I was searching in the net to get the proper help . But I was unable to get the proper info until I visited your Blog. I should thank you for the information you have placed here .

  139. Kendra left a comment on March 13, 2011 at 3:40 am |

    Thanks so much!!! This really helped me out a lot. I built my wordpress theme from scratch, but I used a single sidebar and was unaware of how to place two of them. Thanks again so much!

  140. Kelly left a comment on March 10, 2011 at 4:53 pm |

    Yes! You took all the coding-shmoding mumbo jumbo and boiled it down perfectly. Now the only thing I can’t figure out is formatting. My sidebar appears on my page, but below or above the text of my page (stacked). How do I get it to function like that nice little sidebar it is and default left of the page content?

  141. Pd left a comment on March 9, 2011 at 10:25 am |

    BEST TUTORIAL EVER, thank you SO MUCH!!! I love the mimbo theme, but I was so close to swapping because of the lacking left sidebard. You are amazing for posting this tutorial! <3

  142. rezarnwn left a comment on February 21, 2011 at 5:30 pm |

    Great tutorial, really helpful, thanks a lot.

  143. Frankey left a comment on February 20, 2011 at 4:08 am |

    Great post, i just missed some deeper explanation. here is is page where the going deeper into registering a wordpress sidebar. http://wordpressfunctions.com/global/sidebar-global/register-a-new-sidebar.html

  144. Greg left a comment on February 14, 2011 at 1:45 pm |

    Hey, this is a great solution and I almost have it working. I’ve successfully added a 2nd sidebar to my functions.php but I cannot find a good place to put the 2nd sidebar in index/header/footer.php. Nothing seems to position the sidebar correctly. Can anyone help?

  145. Anime Stanley left a comment on February 14, 2011 at 9:32 am |

    This is so cool, helps me a lot! Thanks for this tutorial…

  146. Miguel left a comment on February 7, 2011 at 5:51 am |

    I also have the problem that there is nothing in index.php that refers to the sidebar. I’m using the Minima Black theme, with a right sidebar. If I put the code in index.php, the new sidebar just gets in the main column… after or before, it depends on where I put it…

    Tried fixing it in sytle.css, but with no luck…

    • Maxx left a comment on February 10, 2011 at 5:27 pm |

      Miguel, try looking in the “header.php” and “footer.php” files. Sometimes it’s easier to include something on every page if it’s in the header or footer… It’ll most likely be in the header.

    • RQ Kitty left a comment on February 10, 2011 at 5:28 pm |

      Miguel, try looking in the “header.php” and “footer.php” files. Sometimes it’s easier to include something on every page if it’s in the header or footer… It’ll most likely be in the header.

      (My new keyboard seems to disagree with me typing, so I’m posting this again to fix the mess-ups, but I don’t know if I can delete the old one)

  147. Rafayel left a comment on January 12, 2011 at 6:04 am |

    Thank you very much!!!!

  148. Carlos Quintana left a comment on January 1, 2011 at 12:59 pm |

    Muy buena explicacion . Muchas Gracias . Exelente muy censillo y facil de entender .

    :-) :-) :-) . . .

  149. gala left a comment on December 22, 2010 at 9:07 pm |

    I have a theme but not widgetize, how do i put a code? coz your post is adding a sidebar 1 or more.

  150. ginger leigh left a comment on December 21, 2010 at 4:30 pm |

    Hi there! Might you be able to help me with this? The theme I am using has only a left sidebar. I would like to change it to a right sidebar. What code do I change?

    Thank you in advance!

    Ginger

    • camisetas muje left a comment on April 17, 2012 at 3:12 am |

      Saludos desde Indonesia.
      Estoy buscando esto por meses, y ahora me encuentro la manera de usted. gracias ‘s mucho.
      Para el tema remake es una pasión.

  151. Mike left a comment on December 15, 2010 at 7:54 pm |

    Here’s a plugin that can help you create a customized sidebar widget for each post or page on your wordpress blog… http://www.mlynn.org/graceful-sidebar-plugin

  152. Rick Cano left a comment on December 10, 2010 at 4:28 pm |

    I followed all your steps but I must be missing something?? I’m adding a sidebar to a Theme that has only Footer Widget/sidebar areas….I was able to add a New “primary” and its in the Appearance area within Widgets…but when I activate a widget for that area….nothing shows up?? Any ideas would be much appreciated. Thanks, Rick

  153. JonnyPM left a comment on November 18, 2010 at 6:34 pm |

    Do you know if there is a limit to the number of sidebars that you can have? Thanks.

  154. Sal left a comment on November 13, 2010 at 4:43 pm |

    Thanks you so much! This just saved my hours of php tinkering! Awesome work :)

  155. deb left a comment on November 9, 2010 at 7:17 pm |

    thank you sooooo much! This worked! I have been trying to follow someone else’s instructions for 3 hours now to no avail. I just found yours et voila! it worked! thank you!

  156. winks left a comment on October 18, 2010 at 1:36 pm |

    Hi

    The theme I have chosen has no right side-bar. How can I create a left side-bar?

    Thanks for your help!

  157. inblues left a comment on October 18, 2010 at 5:13 am |

    thanks! you are the man. Thanks for the tips to get my wordpress work great with extra sidebar.

  158. Eric left a comment on October 18, 2010 at 3:37 am |

    Thanks, I just spent 4 hours trying to figure it out. Your steps took 5 minutes!!!!

  159. HGH left a comment on October 12, 2010 at 7:06 am |

    Very nice explained. I think every webmaster who owns blog have face this problem.

  160. Bob left a comment on September 25, 2010 at 1:56 am |

    Great post! Worked like a charm. Thanks.

  161. Mare left a comment on September 24, 2010 at 1:58 pm |

    Wow, wanted to create an “include” file so the horizontal navigation bar could be in it’s own file as WELL as have a sidebar…and this tutorial worked first time, within minutes of reading it…thanks for this very helpful article!

  162. gilabanget left a comment on September 7, 2010 at 7:25 am |

    I make localhost and the result is ready for use, but after I install it on to sidebar wordpress why can not I add widgets, what should I do.

  163. basit left a comment on August 30, 2010 at 1:56 am |

    just past below code

    if ( function_exists(‘register_sidebars’) ) register_sidebars(4);

    in function.php

    in sidebar.php

    don’t remove existing code

  164. basit left a comment on August 30, 2010 at 1:51 am |

    That’s Great It’s working Thanks for your Post .

  165. Todd Halfpenny left a comment on August 19, 2010 at 5:40 am |

    Hey,

    I know this article is very old but still seems to be relevant and useful.

    Can I also propose the use of the Widgets on pages plugin which allows you to add/remove and manage sidebars via the admin pages. These sidebars can then be added to the theme with 1 simple template tag.

    Hope this is of some use.
    Todd

  166. atom left a comment on August 17, 2010 at 8:58 pm |

    HELP! hw to do this on the monochrome theme

  167. zamenhof left a comment on August 16, 2010 at 5:31 pm |

    can you add the sidebar1.php code to?
    i am returning each time and designing my own templates for wordpress

  168. Jonathan left a comment on August 13, 2010 at 7:36 pm |

    Thank you so much! 😀

  169. sagive left a comment on August 11, 2010 at 7:49 am |

    Gr8 technique man.. i needed that to fix my crumy sidebars :)
    Cheers, Sagive

  170. Bob left a comment on August 8, 2010 at 5:50 am |

    Yeah, this is a great reference I come back to this post a lot just to grab the code.

  171. Birmingham left a comment on July 28, 2010 at 8:17 am |

    Thanks, helped me

    I had to edit sidebar_init.php rather than function.php

  172. Yunus left a comment on July 28, 2010 at 12:29 am |

    Very helpful info,
    I should try this one…

    Thanks a lot

  173. Jarek left a comment on July 27, 2010 at 7:50 am |

    Great!
    Thanks alot – easy and working :)

  174. molivier left a comment on July 20, 2010 at 7:21 pm |

    Just getting started designing custom themes and this tut helped immensely. Hopefully I will write something like this to help someone newer than me. Perfect. Thanks.

  175. Ingvild Telle left a comment on July 17, 2010 at 11:06 am |

    Hi.
    I did this, and everything diappeared!
    Help!

    I jónly changed to
    register_sidebars(2)

  176. daisy left a comment on July 11, 2010 at 10:59 am |

    nice post… i should try…

  177. Barry left a comment on June 21, 2010 at 7:27 pm |

    I’m converting a hand-coded site to WP using the Limauorange theme,which I really like.

    I’m working to add a third widget column and have a questioin about the instructions in this post.

    From what I can see, there is no place in index.php to add the TEMPLATEPATH . ‘/sidebar2.php’); ?> statement. I understand changing the sidebar(2) to sidebar(3) in functions.php, adding a new sidebar name in sidebar.php and creating a new sidebar file like sidebar3.php.

    But there is no mention that I can find of sidebars in index.php.

    What am I missing?

    Thanks,

    Barry

  178. Delilah left a comment on June 16, 2010 at 1:48 pm |

    I’m using the WP Quickpic theme… LOVE IT, but i wish i could use the two gray empty spaces on the right and left side as sidebars. The sidebars in my widget area are registering at the bottom (I’d like to keep those as well…) Anybody know how I can do this? Please help…

  179. kurinchiblogger left a comment on June 10, 2010 at 11:28 am |

    Neatly organized tuite on wordpress sidebars…

  180. pho_hog left a comment on June 7, 2010 at 8:19 pm |

    I am using DEPO SKINNY – which did not come with any sidebar.php or functions.php.

    So, I added a sidebar.php, a functions.php and adjusted my index.php to reflect the new codes.
    Now I see the 2 sidebars in my widget page, however I don’t see any change on my blog. I’m assuming I have to change the width values in my style.css file but I do not know how to do this.

    Can somebody please help?

    Thanks

    toronto24philip@yahoo.com

  181. itz left a comment on June 5, 2010 at 5:26 am |

    Thanks! this post was very helpful. And it was instructed step by step. Just for noobs like me hehe

  182. danjiw left a comment on June 4, 2010 at 7:15 pm |

    cicco says:
    December 29, 2007 at 1:32 pm
    i tried this tutorial with your Silver Light theme, but i get 2 sidebar with th esame content ..

    so does

  183. Jen left a comment on June 1, 2010 at 9:55 pm |

    Thanks! This was so helpful! I spent over an hour banging my head against the wall trying to figure out why my child theme wasn’t displaying two sidebars, then found your tutorial and had it working in <10 minutes.

  184. Janne-Kristin left a comment on May 19, 2010 at 6:42 pm |

    What a great tutorial! I can see sidebar 2 in widgets 😀
    My only, very special problem is that neither index.php or the other files (I have checked them all) have a line called sidebar.php which I think is very odd. Because I have a file called sidebar.php, so it has to be here somewhere…. I think that the “maker” has used the word widgets instead of sidebar, although I have a sidebar.php
    I am using Comet by frostpress.
    Is there any way you can answer to this question? :)

  185. Pariuri Sportive left a comment on May 13, 2010 at 1:15 pm |

    Exactly what I was looking for! Thank you.

  186. web designer left a comment on May 5, 2010 at 2:10 am |

    thank you for this tutorial
    i was really looking for this since long. i found this theme creation tutorial in wpdesigner.com but found nowhere a way how to create multiple sidebars. now this page completes most of my querries. i am gonna try this out and get back to you later on this. thanks again

  187. vivek bandebuche left a comment on May 3, 2010 at 11:04 am |

    i was amazed when i have saw this post…i never think abt that we can add extra sidebar to blogger theme …thanks man…very valuable post

  188. oldoctober.com left a comment on April 24, 2010 at 1:25 am |

    It is written very elegantly! Thanks for sharing.

  189. keith left a comment on April 2, 2010 at 5:12 am |

    Thanks a lot!

    This is what exactly I’m looking for.

  190. MommyGeekology left a comment on March 19, 2010 at 5:35 am |

    @rakesh solanki:- Don’t forget that you’ll need to increase the width of your layout in various areas in order to accomodate the new sidebar! (you’ll need to change width values in your style.css file or custom.css file depending on your theme)

  191. jamland left a comment on March 17, 2010 at 1:13 pm |

    Great! Big thanks!

  192. David left a comment on March 8, 2010 at 2:08 pm |

    This is great, but not taking me all the way to where I need to be. Could you possibly advise?
    I need to assign specific sidebars to specific pages. I would like to create more sidebars with this tutorial, and then reference them in certain templates I am creating for certain pages. So far I think I am on the right track. But it hasnt worked properly yet. I am wondering if I need to make any changes to my style.css file or not. Any help would be great.

  193. rakesh solanki left a comment on March 1, 2010 at 2:21 pm |

    I was looking this tutorial and finally i got it, thanks for sharing.

  194. Raquel left a comment on February 25, 2010 at 11:54 pm |

    This isn’t working…so if you could help with altering this theme, I would appreciate it.

    raquel2344@gmail.com

  195. Raquel left a comment on February 25, 2010 at 11:49 pm |

    ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ”,
    ‘after_title’ => ”,
    ));

    function kubrick_head() {
    $head = “\n<!–";

    the post got cut off, I'll try posting lines 1 through 11 one more time.

  196. Raquel left a comment on February 25, 2010 at 11:45 pm |

    theme: blue-diffusion has a functions.php file included I tried:

    replacing that file w/a new functions.php including the code suggested file here. Failed.
    altered the original code in functions.php to be identical to the suggested code here. Failed.

    this is what the beginning of the code of the original functions.php file looks like, from lines 1-11:

    ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ”,
    ‘after_title’ => ”,
    ));

    function kubrick_head() {
    $head = “\n<!–";

    You said, "If your theme has only one sidebar, then most probably you will NOT find a file called functions.php in your theme folder." Yet, my theme has only one sidebar and a functions.php file.

    Would Gladly and Highly appreciate anyones help.

  197. Martin left a comment on February 24, 2010 at 6:24 pm |

    Thank you for sharing! Best regards!

  198. wzl left a comment on February 18, 2010 at 10:12 pm |

    Hmmm…
    I tried it and the new sidebar shows up in the admin panel, but not on the actual website.
    Tried a bunch of different variations of the code… nothing works.
    Any help would be appreciated.

    flipton@gmail.com

  199. Adrian left a comment on February 12, 2010 at 12:19 pm |

    Hey dude … I have a simple theme without any sidebar and… who cand i create a sidebar ?:P

  200. Robert left a comment on February 6, 2010 at 6:48 pm |

    Great tutorial, worked perfectly for me. Thank you! :-)

  201. rachael left a comment on February 3, 2010 at 10:02 am |

    This is great!! Thanks. Is there anyway i can get only specific sidebars to appear on specific pages?

  202. Valerie left a comment on January 28, 2010 at 10:20 pm |

    @Valerie:-
    Found it! It was under *layout* #c1 and #c2

  203. Valerie left a comment on January 28, 2010 at 10:04 pm |

    I was wondering if you had a quick fix for changing the width of the sidebar?
    In my css there is no #siderbar stuff to change the width.
    Great post!
    Thanks!

  204. Sam left a comment on January 28, 2010 at 6:57 pm |

    I have a wp blog and we have two sidebars which is ok, but …
    the far right sidebar is ok but the middle sidebar which is thin.

    Both sidebars stay the same for all pages but the home page, what I would like is that on some pages the sidebar is different than on other pages. As an example we have a page called coaching, well on that page, we want to sidebar to list testimonials of coaching students, and on the page that is speaking we want the sidebar to have testimonials of speaking clients.

    Is this possible?

  205. Jordan left a comment on January 23, 2010 at 2:35 am |

    Hello. Thank you kind sir. :)

  206. Adam left a comment on January 12, 2010 at 11:13 pm |

    Wow! You made this really straight-forward and simple! Worked perfectly on the Prosense theme which I’m using for my blog.

    Thanks!

  207. Richard Cano left a comment on January 11, 2010 at 7:28 pm |

    I have a dynamic Sidebar Left and Right, I disabled the sidebar right so that I could have more “content” space for my home page, however my problem is that when I add a widget to the left sidebar No links will show up..in other words you can see the ad or button but the link within the widget will not work. I’m using what they call a “Simple Image Link” and it works until I get to the 3 or 4th spot in the sidebar. Its almost as if the original “pages” and wp page list is still there even though I disabled it…however maybe the way I disabled it has effected that “area” so even if I had a widget in that first position it just won’t work?? I simply deleted the h3 pages and wp list pages?? Maybe that’s where I made the mistake??

  208. David left a comment on January 8, 2010 at 7:50 pm |

    Freaking genius. I know zip about code but was able to create another sidebar for my site. Thank you, thank you, thank you.

  209. squiddux left a comment on December 28, 2009 at 9:44 am |

    @thom:- lol, true

  210. Meni left a comment on December 26, 2009 at 10:29 am |

    @thom:-
    LMAO!

  211. thom left a comment on December 25, 2009 at 1:57 pm |

    @John:-

    dude he said novice, not retard!

  212. John left a comment on December 24, 2009 at 10:57 pm |

    Unfortunately you assume a novice knows how to “extract your theme into a folder ”

    and then you are unclear -“open notepad or any other code editor” – does this mean a word processor or a special html code editing program?

    I know you know but if this is tutorial for people who don’t know then I’d suggest every step needs to explained.

    • BP left a comment on April 27, 2010 at 11:51 am |

      Understandable, but “extracting” is to the point where if they explained even that, these tutorials would be useless to most people.

      You can easily find instructions for “extracting” all over the web. It would be really unhelpful to have to explain that over and over in tutorials. I recommend you check out the basics tutorials of WordPress before trying to do custom things if you are having trouble with these concepts.

      it wouldn’t take long and you’d be up to speed!

  213. Tina left a comment on December 18, 2009 at 1:12 pm |

    Thank you very much for your tip. I didn’t think that making a separate side-bar was that easy. I was able to make a totally separate sidebar for my blog and a sidebar for my other blog pages. Thank you very much!

  214. daniel left a comment on December 10, 2009 at 3:58 am |

    Hey
    didnt work for me

    i desperately need someones help, this assignment is nearly due =(

  215. Psdxhtmlycss left a comment on December 6, 2009 at 3:25 am |

    great tip. Thanks for share it!

  216. opajaap left a comment on December 5, 2009 at 7:37 am |

    @incama:-
    This works for me, but how to reach the second sidebar for display.
    Using get_sidebar() gives me the first, but how to get the second?

  217. Andi left a comment on December 4, 2009 at 10:28 am |

    Just wanted to say thanks for the tutorial – I’ve used it three times just this week :)

  218. pravessha left a comment on November 29, 2009 at 12:38 am |

    First of all, fantastic theme! Very elegant and a pleasure to work with. However, once I added my 4 125×125 ads, they appear to push up against the header. Any solution for this?

  219. Tanmoy left a comment on November 28, 2009 at 11:44 am |

    Great tutorial. Thanks for sharing.

  220. Yoonzita left a comment on November 25, 2009 at 1:42 pm |

    thanks, helped me tons 😀

  221. Neeraj left a comment on November 17, 2009 at 7:08 am |

    very very easy..
    thanks for sharing..

  222. daniel left a comment on November 4, 2009 at 9:28 am |

    Hi :) thanks for this

    im having some trouble tho, im using the theme stripey and when i get to the step where i have to find index.php and look for the code calling the sidebar, it doesnt have this code in there

  223. Lydia left a comment on November 3, 2009 at 10:56 am |

    Hello,

    I’ve defined 2 sidebars, in the way you mentioned in the tutorial. I’m using the 2 column WordPress theme Fallseason from the WordPress Theme Park of Sadish. A very nice theme.

    Sidebar 2 I’ve used for the index homepage.
    And sidebar 1, the original one for the rest of the pages.

    But now I can’t add any new activated widget to sidebar 1. Sidebar 2 no problem. But sidebar 1 gives an internal error as follows:

    *Internal Server Error
    *The server encountered an internal error or misconfiguration and was unable to complete your *request.
    *Please contact the server administrator, support@one.com and inform them of the time the error *occurred, and anything you might have done that may have caused the error.

    *More information about this error may be available in the server error log.

    It’s a database access error, I think. How to solve this problem, so that I will be able to add a new activated widget in Sidebar1?

    Thanksss, Lydia

    p.s I like this 2sidebar solution a lot. But it does not really look like 2 sidebars. Also it’s only possible to add a widgets once to a sidebar.. it’s not possible to add a widget to both sidebars.

  224. incama left a comment on November 1, 2009 at 8:34 am |

    @remix:-
    You could try:

    if ( function_exists('register_sidebars') )
    register_sidebars(2, array(
    'before_widget' => '',
    'after_widget' => '',
    'before_title' => '',
    'after_title' => '',
    ));
    ?>

    Seems to work for me;)

  225. CMG left a comment on October 21, 2009 at 12:53 am |

    Hi,

    Thanks a lot. Your post is very useful to creating sidebars in a simplest way.

  226. Leigh left a comment on October 13, 2009 at 7:03 pm |

    Thanks this post really helped me fix a sidebar2 problem. Great work.

    Cheers
    Leigh

  227. Rosaleen left a comment on October 12, 2009 at 1:22 pm |

    this is great! thanks!

  228. Jason left a comment on October 8, 2009 at 5:17 pm |

    I’m having some more issues here. The article is great, but I think I am missing something. In index.php, there isn’t any code that calls my sidebar (i.e.). The original sidebar still displays but there is no code. So I am having trouble figuring out where to place the code to call sidebar2.php so that it will align with my original sidebar. Please help!

  229. Jason left a comment on October 8, 2009 at 1:12 am |

    @Trisha:- Thanks for this reply, I had the same problem and it helped a lot! Thank you!

  230. Gary left a comment on October 7, 2009 at 11:44 pm |

    Whenever I make an edit to my function.php file, it brings back a syntax error. Even when I erase the error and refresh, the syntax never leaves. I’m forced to re-upload the default wordpress function.php file.

    What am I doing wrong?

  231. Peter left a comment on October 1, 2009 at 12:55 am |

    Thanks a lot for this it helped me out a great deal.

  232. Phill Price left a comment on September 24, 2009 at 5:14 am |

    @Lorian Rivers:- http://codex.wordpress.org/Function_Reference/get_sidebar shows you can pass a name to it; one for each side. Warning! May look ugly without CSS changes!

  233. Lorian Rivers left a comment on September 20, 2009 at 1:48 pm |

    Ok….did everything and was great EXCEPT I want the extra sidebar on the opposite side.

    Your instructions –

    Now take a look at the index.php file carefully and find a suitable place to insert the second sidebar. This might involve modifying your layout or adding new divs. Once you find a suitable place, place the following code there :-

    My problem is the last thing before the end of the page code is “get sidebar”. If I add the second sidebar there, then there are 2 on one side.

    Can you help me set it so there are sidebars on BOTH sides?

  234. Alan left a comment on September 9, 2009 at 11:15 am |

    Thanks for this quick reference. I added a sidebar to a theme I’m hacking for someone. It was a bit too simple, so I wanted to add a sidebar the “proper” way 😉

    Thanks again

  235. Jai left a comment on August 27, 2009 at 2:44 am |

    @remix:- Just go to the very top line of your functions.php and add this code :-

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

    This will register 2 new sidebars.

  236. remix left a comment on August 26, 2009 at 9:29 pm |

    I’m still lost on the first step with the functions.php file. My theme has one, but I don’t know where to edit in the number to my requirement?

    My code says:

    ‘leftsidebar’,
    ‘before_widget’ => ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ”,
    ‘after_title’ => ”,
    ));

    }
    ?>

    Can anyone please help me on this one? I’m trying to learn this from scratch. I’m taking over a site someone else started. Thanks in advance.

  237. brenda left a comment on August 23, 2009 at 11:17 am |

    Thx for the tutorial. I was trying to add a column for advertising and couldn’t figure out why my ads weren’t showing. After reading the tutorial, I realized that I forgot to place my “call code” in the index file.

    Great site – keep up the helpful and informative work~!

  238. Wouter left a comment on August 17, 2009 at 7:01 am |

    Hi!

    How do i get the USER to choose the sidebar, instead of the template ( with if, else statements)
    So I would like an extra option to the page-admin with a dropdown of available sidebars.

    Any suggestions where to start?

    Thanks!
    Wouter

  239. chris rolls left a comment on August 14, 2009 at 8:21 am |

    ok so the code disappeared somewhere … basically in has

    TEMPLATEPATH . ‘/browse

    and not TEMPLATEPATH . ‘/sidebar

    any ideas?

  240. chris rolls left a comment on August 13, 2009 at 9:10 am |

    Hi,

    Before I amended my index.php file I noticed I have the below code:

    So no mention of sidebar.php

    Any suggestions on what to do here?

    Thanks

  241. Ajay left a comment on August 7, 2009 at 2:21 am |

    hi there thanks for this! I’m working with a theme which is perfect for my needs but it has no sidebar! I can’t look for another one just because of this. Is there a way to add one?

  242. Tiffiny left a comment on August 4, 2009 at 7:52 am |

    Worked Perfectly – Thank you!

  243. Laneth left a comment on July 29, 2009 at 6:30 am |

    Hi there,

    Your quick-fix tut saved my skin when developing for my first client. Thanks so much for providing this here. I’ve bookmarked your article and will trackback when I get a chance.

  244. Craigsnedeker left a comment on July 27, 2009 at 3:19 pm |

    LOVE IT! I so needed this. Thanks!

  245. Babaji M P left a comment on July 19, 2009 at 2:51 pm |

    Hi, I’m not sure if i will get a reply or not. But let me ask you. How can i add a widget area beneath post ??
    Thank you in advance.

  246. myap left a comment on July 17, 2009 at 3:40 pm |

    Very useful and easy for a WordPress newbie to understand: thanks!

  247. Bull left a comment on July 12, 2009 at 2:57 pm |

    Now i’ve changed everthing back to normal, but still wondering about the bullet points…

  248. Bull left a comment on July 12, 2009 at 2:15 pm |

    @Bull
    forgor to add my page: please have a look
    http://www.feuilletonist.com

  249. Bull left a comment on July 12, 2009 at 2:14 pm |

    hello! thanks for the very easy understandable explanation.
    i coul add another sidebar, but now i’ve got bullet poist in my layout. i searched for list-style-types in my css, or for “square”, but could find anything, that could remove them.
    help me please…

    thx, Bull

  250. Adam left a comment on July 7, 2009 at 6:25 am |

    Is there a simple fix for calling different footers for different pages.

    ie. If i want the ‘standard’ footer on the posts but a different one on the pages etc.

  251. leandro BR left a comment on July 7, 2009 at 5:54 am |

    thx a lot, man

  252. Kcrystina left a comment on July 4, 2009 at 5:51 pm |

    Thank you SO much for this small but ever so helpful tutorial. I have been trying to get a second sidebar to show up so I can use widgets in it but wasn’t getting very far until I came across your post. Following your instructions here, I was able to get both sidebars registered and working without any problem. *grin*

  253. Phil left a comment on July 4, 2009 at 8:56 am |

    Really useful post and easy to follow.

    I thought I would share the few problems I encountered along the way:

    1) In the functions.php file, I had a register_sidebar() function – you need to make sure you change this to register_sidebars(n) (where n is the number of sidebars) as register_sidebar seems to only register the one!
    2) In your index.php file, rather than seeing you might only see get_sidebar() (which is equivalent to
    3) you may also need to make changes to other template files (e.g. page.php, single.php, 404.php) as well as index.php (depending on theme).

  254. ianemv left a comment on July 2, 2009 at 3:09 am |

    @Maddog:-
    Possible error on your CSS.

  255. ForgetGyms.com left a comment on June 27, 2009 at 12:00 pm |

    My functions.php file shows:

    if ( function_exists(‘register_sidebar’) )
    register_sidebar(array(
    ‘before_widget’ => ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ”,
    ‘after_title’ => ”,
    ))

    I have nowhere to change the number of register_sidebar. How do I add a sidebar to the above code?

  256. anil left a comment on June 25, 2009 at 8:11 am |

    Thanks for the nice code

  257. Joe Pea left a comment on June 20, 2009 at 12:51 am |

    Hey, How can you modify the above code so that each sidebar has it’s own name when you are in the widget screen?

    for example I don’t want ‘sidebar 1′, ‘sidebar 2′, ‘sidebar 3′, etc.

    I want menu 1, footwear 2, store 3, etc… the numbers coming from the %d code.

    Anyone know?

  258. Brictone left a comment on June 17, 2009 at 7:26 pm |

    I’ve done all this over and over again and my second sidebar isn’t showing up anywhere. Do I have to do something with style.css to see it?

  259. Dharma Voyager left a comment on June 8, 2009 at 11:47 pm |

    Thank you very much. This was very helpful!

  260. Sheharyar Naseer left a comment on June 5, 2009 at 4:27 pm |

    Verry, Very Helpful!!!! Thankyou very much.

  261. JamesL left a comment on June 3, 2009 at 1:17 am |

    @Maddog:- Could you give us a bit more info, Maddog? A url might be helpful. I’m guessing this is probably a CSS or XHTML issue.

  262. allan left a comment on June 2, 2009 at 1:48 pm |

    nice very helpfull info!

  263. Livia left a comment on June 1, 2009 at 10:12 pm |

    Awesome… thanks!

  264. Maddog left a comment on May 28, 2009 at 9:30 pm |

    My sidebar shows up under the content. Any ideas why?

  265. jerry left a comment on May 18, 2009 at 11:11 pm |

    so if i did this right the second sidebar will show up in the right side of my blog as a 3 columns theme with 1 sidebar on both side?

  266. Trisha left a comment on May 15, 2009 at 6:34 am |

    @Lineolated Parakeet:-
    heres how: add an s to sidebar (both spots) and put the number of sidebars before the array.
    like this
    if ( function_exists(‘register_sidebars’) )
    register_sidebars(2,array(

  267. emanuel left a comment on May 10, 2009 at 3:37 am |

    thanks a lot! great and to-the-point tut!

    exactly what i needed!

  268. Carolyn left a comment on May 7, 2009 at 10:41 pm |

    Love the tutorial! Thanks, don’t know how to place the second sidebar without breaking the design. You address this, but vaguely…

  269. carolyn left a comment on May 3, 2009 at 2:22 pm |

    Well done, and thank you! I love the simplicity of language and instructions.

  270. Lineolated Parakeet left a comment on May 3, 2009 at 10:27 am |

    Okay, the last comment wouldn’t let me paste the contents of the functions.php file. Here is a text file where you can see the contents: http://www.lineolatedparakeet.net/functionsphp.txt

  271. Lineolated Parakeet left a comment on May 3, 2009 at 10:25 am |

    Great tutorial! But I’m at a loss…
    My theme only has one sidebar, but has a functions.php file. This is its contents:

    ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ”,
    ‘after_title’ => ”,
    ));
    ?>

    Calendar

    What do I need to do to add a second sidebar?

  272. Savio Lopez. left a comment on April 19, 2009 at 9:24 pm |

    I have tried the above and this is what i get when i try to activate a widget.

    Warning: Cannot modify header information – headers already sent by (output started at /home/telesco/public_html/wp-content/themes/e-wallet/functions.php:8) in /home/telesco/public_html/wp-includes/pluggable.php on line 850

    Please help…

  273. canute left a comment on April 19, 2009 at 8:58 pm |

    @canute:-

    i just solve it
    nice tutorial
    thanks

  274. canute left a comment on April 19, 2009 at 8:29 pm |

    my theme has already the function.php
    i open it and show this

    if ( function_exists(‘register_sidebar’) ) {
    register_sidebar(array(
    ‘before_widget’ => ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ”,
    ‘after_title’ => ”,
    ));
    }

    the problem is
    i cant add another one
    or just cant figure out
    if anybody knows how i can fix it
    i apreciate it

  275. Devision left a comment on April 16, 2009 at 7:43 am |

    Thanks for the article. Worked great first time. I was able to add a second widgetized sidebar to my 2 column theme, and make it 3 columns. Your instructions were very easy to follow, accurate and detailed. I thank you sir!

    For the doubters here check the results:
    http://www.devision.com.au/blog/

  276. PHWizard left a comment on April 1, 2009 at 3:37 pm |

    Certainly a very helpful guide. Thank you!

  277. CliveCrooks left a comment on March 18, 2009 at 12:06 pm |

    @Dan:-
    Hello,
    I do not see a reply to this particular question. I have the same problem. My index.php does not contain include lines instead it contains a call get_sidebar(). I do not know how to change this to get a second sidebar. I have made the changes to functions.php and made the files sidebar1.php and sidebar2.php so I do see it in worpress editor but it does not appear on page as I cannot firgure out what to use instead of get_sidebar. Would really appreciate the help.

  278. Jason left a comment on March 3, 2009 at 9:23 am |

    @Jai
    I sent you an email too..but for others I have seen several questions of how to get the sidebar on the far right side, if you already have the original sidebar on the left. I can get the new sidebar to appear but it doesnt seem to matter where I put the code in the index.php file it still ends up either below the posts or on top of the posting area. How do I get it to mimic the left sidebar on the right? Any ideas anyone?

  279. Janan left a comment on February 18, 2009 at 2:01 pm |

    i was confused with the code as i was using 2 lines in functions.php
    if (function_exists(‘register_sidebars’)) register_sidebars(1);
    if (function_exists(‘register_sidebars’)) register_sidebars(2);

    my bad as it screwed my head for 30 min, but its ok now, i removed the first line as i have to use only one single code
    if (function_exists(‘register_sidebars’)) register_sidebars(2);
    just have to increase the number for more sidebars.

    Thanks alot.

  280. Simon left a comment on February 16, 2009 at 8:33 pm |

    @ayahshiva:-
    Because you reeeealy like the Theme apart from the fact it has only one sidebar?!

    Nice Tutorial! Keep it up!

  281. lymyt0 left a comment on February 12, 2009 at 9:04 pm |

    so many thanks dude, u really saved my whole life x) im tryin to desing my own wordpress theme from scratch and.. i was soooo stucked on “how can i make 2 sidebars¿? :S” thanx a lot :) happy new year! haha =)

  282. uokesita left a comment on February 10, 2009 at 4:32 pm |

    Hi, this tutorial is great.. i did’t find tutorials for this in spanish, so your tutorial is so easy. thank you..

  283. Wynter left a comment on January 23, 2009 at 8:39 am |

    @Missy:- haha! good to see you here :)

    Awesome post man, really helped me with the include code, that is gold!

  284. eric marantan left a comment on January 21, 2009 at 11:55 pm |

    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..

  285. fere left a comment on January 19, 2009 at 9:54 am |

    @ayahshiva:-

    Why not ? Some would find this really usefull. When you want to mix diferent stylles toghether you need to know how to proceed.

  286. suraj left a comment on January 8, 2009 at 7:59 am |

    thanks for such nice and simple tutorial..now i know how to create different column themes..pretty simple & usefull

  287. Espen Gjelsvik left a comment on December 30, 2008 at 1:35 pm |

    I have the same issue with vncomet:

    I want to display my adsense blocks outside the content div on the left side, and outside the sidebar on the right side.

    Does anyoneknow how to do this, Im guessing I would have to make two more columns, one on each side?

    I made this sketch to show what I mean.
    http://gmx.no/sketch.jpg

  288. Rohit left a comment on December 29, 2008 at 1:14 am |

    Thanks for this info man! I was searching for the same from a long lime.

  289. Rohit left a comment on December 29, 2008 at 12:16 am |

    Hey! Nice post. It helped me a lot. Thanks.

  290. neden para left a comment on December 26, 2008 at 2:22 pm |

    thanks for this info…

  291. Justin F left a comment on December 23, 2008 at 10:18 am |

    Great tutorial. I am using the Theme Dark Night Everything looks good until I go to the Index.php file.

    That line of code isn’t in the index file or anywhere else for that matter. Am I screwed?

  292. Billy left a comment on December 19, 2008 at 2:48 am |

    I don’t think this works so well with 2.7. It jacks my theme all up and i’m using the default theme (modifying it myself).

    Think I could bug you into looking at 2.7 and seeing if this still applys? I want to add a 3rd column (second sidebar) to the theme.

  293. Trisha left a comment on December 17, 2008 at 3:21 am |

    @Trisha:- my darn keyboard. lets try this again, all in one post.

    there is no code built in to your css for adding an extra sidebar. You will want to add an id tag for your sidebar2. this is the code i use to style my extra sidebar, and by adding the ul and list-style:none… it will get rid of the list your complaining about:

    #sidebar2 ul {
    width:500px;
    margin:20px auto; padding:10px;
    background:white; border:1px solid #999; list-style: none;
    }

    then just add the div in your sidebar2.php

    hope this helps

  294. Trisha left a comment on December 17, 2008 at 3:19 am |

    @Luke:- there is no code built in to your css for adding an extra sidebar. You will want to add an id tag for your sidebar2. this is the code i use to style my extra sidebar, and by adding the ul and list-style:none… it will get rid of the list your complaining about:

    #sidebar2 ul {
    width:500px; margin:20px auto; padding:10px;
    background:white; border:1px solid #999; list-style: none;
    }

  295. Trisha left a comment on December 17, 2008 at 3:14 am |

    its been over a year and this code still works, the only code i found that works. THANKS SO MUCH!

  296. Luke left a comment on December 10, 2008 at 9:06 am |

    JIM –

    Thanks for the reply.

    I’m no CSS expert, but I’m a decent tinkerer. I’ve been fidgeting with the widths, etc. and can’t seem to get things to fit correctly.

    As you can see at my site (http://touchingharmstheart.com/), I’ve put placeholder text where the “sidebar1″ and “sidebar2″ are placed.

    I can’t seem to get “sidebar2″ to respond to CSS (there’s not a tag for it in my theme’s style sheet). The CSS also seems to think that “sidebar2″ is a list of some sort. I’m flummoxed.

    I’ll keep tinkering, but I’m convinced I need some CSS guidance. Any recommendations?

  297. Jim left a comment on December 8, 2008 at 10:52 am |

    Luke, I misread your post. If it is showing but not in the right place, ( maybe under ) everything, then it is a CSS problem for sure .There may not be enough width to handle everything.

    JIM

  298. Jim left a comment on December 8, 2008 at 9:52 am |

    Luke,

    I struggled for weeks trying to make sidebar additions work, in reality the addition tutorial is correct, but the layout may not handle it.

    Look at the Daily press theme here on BohBlog, it is really good, has 2 sidebars on right under another sidebar.

    hope this helps

    JIM

  299. Luke left a comment on December 8, 2008 at 8:50 am |

    Greetings …

    This tutorial is easy to follow and (almost) gave me great results. My problem:

    I’ve tried placing the “” tag **everywhere** in my index.php but it will not sit in a sidebar position. That is to say, it appears and it works, it’s just in the wrong position on my blog.

    I’m using a pretty old theme (Water 1.0 – http://wordpress.org/extend/themes/water) so perhaps a 2nd sidebar is impossible. Can anyone let me know?

    Or is there a way to create a 3rd column in which to place the 2nd sidebar?

    Thanks …

  300. Vincent Cohen left a comment on November 26, 2008 at 4:18 pm |

    @ josh

    If you have a sidebar DIV, you can use the attribute ‘overflow:auto; or overflow:scroll;’ (in your css) it adds a scrollbar to the sidebar.

    Here’s a link:
    http://www.w3schools.com/Css/pr_pos_overflow.asp

    I hope I helped you out.

  301. Josh left a comment on November 26, 2008 at 12:09 pm |

    This is SO helpful. AND … what I’d REALLY love is a sidebar that scrolls independently, so that it remains visible no matter how far down in the blog someone scrolls.

    Is there a way to implement this?

  302. JIM left a comment on November 23, 2008 at 12:25 am |

    miss the code everytime, does it need tick marks or something to display

    ` `

  303. JIM left a comment on November 23, 2008 at 12:23 am |

    Jai,

    Why can this line

    Not be included in this code

    You can see I tried but it will not show up on index.php after the category listings.

    Daily Press Theme

    Thanks

    Jim

    Jim

  304. JIM left a comment on November 23, 2008 at 12:17 am |

    @Rafael Marrero:-

    As Jai mentioned, not all themes can accept the extra sidebar, mine did not. For days I adjusted css and still no good. I found “DAILY PRESS” theme here on BlogOH!Blog andit is really super. Check out my site to see it.

    JIM

  305. Rafael Marrero left a comment on November 22, 2008 at 7:43 pm |

    I currently have a theme on our website that’s a single column, no sidebar. When I followed your steps to add a sidebar I couldn’t make it all the way through the steps because it would give me errors (line3) etc. I would have to re-upload the original themes *.php files to fix it. Bottom line, What am I doing wrong?

  306. Alex left a comment on November 20, 2008 at 2:50 am |

    Hey Guys,

    Don’t be pernickety with Jai. I found his tutorial very useful, and I have an extra sidebar.

    You do need to know a little about the inner workings of WP to get this to work, even if it is not too difficult.

    Be patient!

    Best,

    Alex

  307. JIM left a comment on November 20, 2008 at 2:50 am |

    @Jai:-

    Thanks Jai, That is exactly what I thought. It would so easy to just get another theme that has what I want, but I have put in a lot of time and learning on mine, so someday i will get it all added.

    THANKS

    Jim

  308. Jai left a comment on November 20, 2008 at 12:11 am |

    @JIM:- Jim,

    Sometimes a tutorial cannot apply on every theme since every theme is built differently. You might have to do more than what’s written in the tutorial. I will advise you to take the help of a good coder because I think your theme needs more work.

  309. Jai left a comment on November 20, 2008 at 12:10 am |

    @moshu:- Please read carefully all the comments that have been posted before you. People have definitely benefited and have been able to add an extra sidebar. So, please do not make superficial comments and spread hate just because you do not have the calibre to understand a tutorial.

  310. JIM left a comment on November 19, 2008 at 10:52 pm |

    @moshu:-

    Moshu,

    I have seen your expertise elsewhere. The theme I used has only one sidebar on the right. I want to add another one on the left for ads.

    Please point me in the right direction to find out how to do this.

    THANKS

    Jim

  311. moshu left a comment on November 19, 2008 at 9:50 pm |

    Now take a look at the index.php file carefully and find a suitable place to insert the second sidebar. This might involve modifying your layout or adding new divs. Once you find a suitable place,

    That’s a big BS…
    Your post title is misleading completely. You are just describing very superficially, how to add widgets to a second sidebarNOT how to add a second sidebar in the design/layout.
    So, basically, for those that have a one-sidebar theme – this “tutorial” is absolutely useless.

  312. JIM left a comment on November 19, 2008 at 11:35 am |

    @JIM:-

    Let try this approach to some help. If after all steps are done, should Ibe able to use just the new sidebar2.php file in place of sidebar1.php and have it display where sidebar1.php did display

    JIM

  313. JIM left a comment on November 19, 2008 at 3:19 am |

    @JIM:-

    ?php include (TEMPLATEPATH .’/sidebar1.php’); ?

  314. JIM left a comment on November 19, 2008 at 3:18 am |

    I am struggling here. When I put this code in my Blog.php file the sidebar1 does display

    but if I change it to sidebar2, nothing displays????

    THOUGHTS PLEASE

    JIM

  315. JIM left a comment on November 18, 2008 at 1:43 pm |

    @JIM:-

    Jai, in the ‘open Air’ theme the Teplatepaths are in the Blog.php file. I did add both Templatepath statements to it.

    I think the no display is really the added CSS for the left new sidebar. If you look at my site, I adjusted the other columns to the right, but something in the new DIV is not right yet.

    THANKS

    Jim

  316. JIM left a comment on November 18, 2008 at 1:01 pm |

    @JIM:-

    this time it will work

    1?php include (TEMPLATEPATH . ‘/sidebar.php’); ?

  317. JIM left a comment on November 18, 2008 at 12:58 pm |

    @Jai:-

    Thanks Jai, yes I did. Funny thing is my index.php did not have the original sidebar statement in it that you talked about

    that was not in my index.php file

  318. Jai left a comment on November 18, 2008 at 12:35 pm |

    @JIM:- Did you actually include the sidebar in your code :-

    < ?php include (TEMPLATEPATH . '/sidebar2.php'); ?>

  319. JIM left a comment on November 18, 2008 at 11:55 am |

    @JIM:-

    Jai, i know i am the last person to see and look at this tutorial, but I would really like to get it installed for ads on the left side.

    I spent last night adjusting my online site to make room on the left. That in itself for a non GURU took hours.

    After trying to get things to add the sidebar it just will not display for me. In the design-widgets drop down box, I do have sidebar 1 and sidebar 2. I added a calendar to sidebar 2 but no display.

    Any help greatly appreciated.

    JIM

  320. JIM left a comment on November 17, 2008 at 2:50 pm |

    Jai,

    Can this tutorial also put the new sidebar on the left. My site has 2 columns. One in center ( for post ) and a sidebar on the right.

    THANKS

    JIM

  321. abdfatah left a comment on November 17, 2008 at 9:29 am |

    can we use software to add sidebar wp?

  322. Goran left a comment on November 12, 2008 at 1:00 pm |

    Currently I am learning how to setup a wordpress blog, its amazing how much resources there is on the web. Thank you for this information. I have Stumbled this page for others to find. Thank you.

  323. nast0 left a comment on November 7, 2008 at 2:53 pm |

    A brilliant tutorial, mine didn’t work exactly as described, but worked perfectly. Took less than an hour to put in a second bar, and place it nicely.

    Thanks very much.
    n

  324. zuper left a comment on November 5, 2008 at 6:08 am |

    srr wrong text index looks like this

  325. zuper left a comment on November 5, 2008 at 6:06 am |

    hey i have other problem i cannot find this:

    my index.php look like this

    <h3 class=”entrytitle” id=”post-“> <a href=”” rel=”bookmark”>

    Posted <?php
    the_time(‘F j, Y ‘);
    $comments_img_link= ”;
    if (function_exists(‘enp_edit_link’)) { enp_edit_link(__(‘ Edit This’)); }
    else { edit_post_link(__(‘Edit This’)); } ?>

    <!–

    –>

  326. cris left a comment on November 4, 2008 at 3:37 pm |

    hey. added the sidebar. nice. but there is a problem. i have a plugin activated in one of my two sidebars: “recent entries” and after doin’ a search query, it all works fine, excepto for the “latest entris” widget… shows in the list all the pages in the site… not very useful, since i already have a list with the pages (menu list). what could be the problem??

    oh, and it ony happens when i do the query.
    thanks.

  327. Cyclosity left a comment on November 2, 2008 at 7:17 pm |

    Nice tutorial, but this isn’t that helpful for those who are looking to add a sidebar for themes that have none defined already. Can somebody point me in the direction of a good one?

    email – cyclosity (@) gmail.com

  328. Eric left a comment on October 31, 2008 at 12:28 pm |

    Great tutorial. This was exactly the how-to information I was looking for and you explained it perfectly. Now I can fix my themes!

  329. love love left a comment on October 28, 2008 at 9:47 pm |

    HEY THE NEW SIDEBAR AUTOMATICALLY CODES WITH BULLETS. HOW DO I GET RID OF THAT? I’VE TRIED EVERY REMEDY AND NOTHING IS WORKING!

  330. Lucas Loyola left a comment on October 20, 2008 at 7:34 pm |

    man, very nice tutorial.
    thanks for this!

  331. JL left a comment on October 12, 2008 at 5:04 pm |

    You left out the part about how to get the additional column in the right alignment. Everything works up to that point.

  332. Chetan left a comment on October 5, 2008 at 12:32 pm |

    Great, Thanks for helping me.
    recently added one new sidebar at bottom :)

  333. Haldan left a comment on October 4, 2008 at 12:43 pm |

    I’ve gotten everything to work, except the alignment, as you mentioned might be a problem.

    I can’t seem to get my new, 4th, column to sit next to the others, it keeps tucking itself below the 3rd column. I’ve tried extending the fixed width to fit it all, but i can’t get it to move. How do I fix this?

    any help would be greatly appreciated.

  334. wyne left a comment on September 28, 2008 at 4:56 am |

    Hi jai,
    i am confuse where to put this code because my index.php file is like this

  335. kc left a comment on September 23, 2008 at 10:30 pm |

    packing sand grain by grain but i told my buddy i would finish this project for him. i hope i do. this tutorial helped me. thanks a bunch!

  336. Alex left a comment on September 21, 2008 at 3:36 pm |

    Big thanks from me too!

    Very useful – sorted out my third post-only sidebar.

    Cheers,

    Alex

  337. rohin left a comment on September 14, 2008 at 8:39 pm |

    anyone use Flash news theme from woothemes ? I recently bought it a while ago and can not for the sakes of me , get any kind of sidebar running on it.

    It’s either you use their already pre-made sidebar or that’s it.

    After I tried to follow your directions it seems to work for half a second then disappears.

  338. antudegil left a comment on September 7, 2008 at 10:25 am |

    @ninku:- i assume you are using Journalist template and i’m also using this template and hard to follow this tutorial. Can u help us?

  339. Annie left a comment on September 5, 2008 at 10:17 am |

    sorry I dont know whats going on I cant show the code properly. I get the pho get_sidebar thing

  340. Annie left a comment on September 5, 2008 at 10:16 am |

    the code didnt show up. Im here again:

    i get this:

  341. Annie left a comment on September 5, 2008 at 10:15 am |

    Just like Dan Im not seeing on Idex.php. Instead I’m getting this: :(

    What should I do?

  342. Andres Vasquez left a comment on August 31, 2008 at 5:25 am |

    Thank you guy for the tutorial , it’ll really work now in our radio estation.

    http://www.estaciondesconocida.cl

    Good guy 😉

  343. Adam left a comment on July 29, 2008 at 9:40 pm |

    I’m working on a theme has a sidebar, but I can’t see how it is called to pages. There is no file like to be found anywhere.

  344. blogo**** left a comment on July 25, 2008 at 1:40 pm |

    Hi,

    and thanks for this turotial ! I havn’t applied it now, because I have question first.

    I have a theme with two sidebars at the right. Is it possible with your method a third sidebar, at the left corner?

    thanks in advance.

  345. james@adsense-pro left a comment on July 22, 2008 at 10:38 am |

    And yeah, modifying functions.php as you suggest causes an error.

  346. james@adsense-pro left a comment on July 22, 2008 at 10:36 am |

    I dont get this tutorial :)

    I mean I see what you are getting at, but its really difficult to follow… Most of the time I cant find the code phrases you mention in my wordpress files :(

  347. atlanta wedding photographer left a comment on July 11, 2008 at 10:42 am |

    Question: what about the header. I have a flash header and would like to know if the second sidebar will go under the header if i extend it or go beside it?

  348. atlanta wedding photographer left a comment on July 11, 2008 at 10:40 am |

    @Chris:- I had that problem too but looks like that there is a drop down that you can switch between the 1 and 2nd column

  349. ninku left a comment on July 5, 2008 at 2:32 pm |

    my sidebar functions starts like this
    if ( function_exists(‘register_sidebar’) )
    {
    register_sidebar(array(
    ‘before_widget’ => ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ”,
    ‘after_title’ => ”,
    ));
    }
    how to make my sidebar increase??thanks in advance.

  350. Sam H left a comment on July 3, 2008 at 6:53 pm |

    just wanted to say a massive thank you for this article…

    it did require a few more detailed changes for my theme, but am delighted to report that after a root around my files, I manage to make the necessary changes.

    it looks lovely!

  351. zulfadhli left a comment on June 26, 2008 at 6:17 am |

    thanks a lot.. this is really help full

  352. noobatron left a comment on June 21, 2008 at 9:53 am |

    Allright, Thanks alot!
    and thanks for he tutorial!

  353. Jai left a comment on June 21, 2008 at 6:09 am |

    @Noobtron : It was a problem with the way code in my posts was showing. Fixed now!

  354. Noobtron left a comment on June 21, 2008 at 5:39 am |

    Hi Jai!

    I have been looking for a tutorial, however I cannot see the codes you posted in your post I can only see the first part of codes;

    “if ( function_exists(‘register_sidebars’) )
    register_sidebars(2);
    ?>”

    But the rest are just blue boxes with nothing.
    Is it a problem on my end? I really need this tut and I tried to view the codes in both FF and IE.

    Noobatron..

  355. Rui Cruz left a comment on June 12, 2008 at 2:53 pm |

    Thank you for this tutorial.

    I was checking this for a client and you save my day. 😀

    Rui

  356. Rishi left a comment on June 10, 2008 at 7:09 pm |

    Fantastic tutorial! Thanks for taking the time to do this!

  357. JBO left a comment on June 6, 2008 at 7:25 am |

    forget that – forgot to put a (2) in the second sidebar file. all is well now!

    Thanks a lot

  358. JBO left a comment on June 6, 2008 at 7:07 am |

    Great mod – and all successfully changed although the problem I have now is that the widgets I use in the admin for sidebar 2 do not show on the sidebar 2.

    I simply get the same as sidebar one even though the admin says differently.

    Thanks

  359. Jai left a comment on May 29, 2008 at 8:16 am |

    @Matt: Yes, the modification will work with WP2.5 + version too.

  360. Matt left a comment on May 29, 2008 at 6:52 am |

    I noticed this post was published in Nov 2007. Does the trick work with new versions of WP? Or will things go wrong when I update it later?

  361. Joel Fisher left a comment on May 25, 2008 at 8:10 pm |

    IF you are getting a parse error..make sure you are inserting the right code in sidebar2.php, etc.

    Try this:

  362. petryx left a comment on May 25, 2008 at 6:25 pm |

    Thanks very usefull

  363. Elizabeth left a comment on May 6, 2008 at 8:06 am |

    I followed your steps exactly and am getting this:
    Warning: Cannot modify header information – headers already sent by (output started at /home/tablefou/public_html/momcooks/wp-content/themes/rockinruby-10/functions.php:6) in /home/tablefou/public_html/momcooks/wp-admin/theme-editor.php on line 60

    I don’t understand what adding a second sidebar has to do with the header. Any suggestions?

  364. Tom left a comment on April 23, 2008 at 12:06 pm |

    Hi, I am using the GreyLagoon theme and after going through tutorial step by step, I get this error message:

    Parse error: syntax error, unexpected ‘;’ in /home/oldwiza1/public_html/wp-content/themes/graylagoon-01/sidebar2.php on line 5

    I believe my error may be related to where I post this code:

    Can you help me?

  365. adam left a comment on April 18, 2008 at 11:19 pm |

    should mention that my blog had NO sidebars to start with.

  366. adam left a comment on April 18, 2008 at 11:18 pm |

    tried this. messed up my wordpress site. Using wp 2.5. Just lettin’ people know. I’m not sure how successful this will be with recent versions of wp

  367. DBR left a comment on April 10, 2008 at 11:34 pm |

    This was exactly what I was looking for but could you perhaps elaborate or do a tutorial on the following for we novices brave enough to attempt this?

    “find a suitable place to insert the second sidebar. This might involve modifying your layout or adding new divs. Once you find a suitable place, place the following code there :-”

    Or even provide a link to where we can find this info?

    Cheers,
    DBR

  368. Fuj left a comment on April 10, 2008 at 11:13 am |

    I Love You, Thankyou Thankyou Thankyou.

  369. hip hop videos left a comment on April 6, 2008 at 4:15 pm |

    excellent tutorial, I needed this for my site to display RSS feeds from multiple places, thanks a million

  370. Arkadiusz Benedykt left a comment on March 30, 2008 at 7:24 am |

    Thanks for the post, it was very usefull for me during “tuning” my theme

  371. Chris left a comment on March 23, 2008 at 6:19 am |

    I am currently using the Silverlight-01 Theme. (Thank you very much!)

    The theme says it’s supposed to come with 2 sidebars. I tried dragging widgets into both
    Sidebar 1 and Sidebar 2 under >Presentation >Widgets. However, only the widgets from side Sidebar 2 show up (they show on the right hand side of the screen). How can I make the widgets from Sidebar 1 show up on the left hand side of the screen?

    Since I think the theme was meant to have 2 sidebars, I didn’t want to mess with the code and screw it up.

    However I did create the files sidebar1.php and sidebar2.php as the article describes.

    Thanks for the help.

    Chris

  372. Sufiyan Ghouri left a comment on March 20, 2008 at 12:58 pm |

    if i give you theme url then can you please do this for me?

  373. Sufiyan Ghouri left a comment on March 20, 2008 at 12:57 pm |

    i did whatever this tutorial said but i am getting this error

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in \wp-includes\widgets.php on line 53

  374. John left a comment on March 17, 2008 at 4:58 am |

    Hi, Just following the post, which seemed easy enough. I am using one of your themes Kelabu and wanted to add a right side bar. All was good until the editing of the index.php. I cannot get the right side bar to appear. Can you help me any further?

  375. Brendon left a comment on March 2, 2008 at 7:14 am |

    Nice Article. I have a post on my blog about why having two sidebars can benefit the site in terms of ease of navigation and advetisement revenue.

    You can find the post here: http://bitfilm.net/2008/02/24/the-benefits-of-having-two-sidebars/

  376. mmuurrllyy left a comment on February 29, 2008 at 3:19 am |

    i love this tutorial

  377. Jai left a comment on February 26, 2008 at 10:39 pm |

    @EssEtch: After the line which says

    if (function_exists(‘register_sidebar’))

    just add this line :-

    register_sidebars(2);

    where 2 is the no. of sidebars that you want to have in your wp theme.

  378. EssEtch left a comment on February 26, 2008 at 10:14 pm |

    Sorry. I’ll post the first 2 lines again:
    <?php
    if ( function_exists(‘register_sidebar’) )
    register_sidebar(array(

  379. EssEtch left a comment on February 26, 2008 at 10:13 pm |

    Again:

    ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ”,
    ‘after_title’ => ”,
    ));
    ?>

  380. EssEtch left a comment on February 26, 2008 at 10:11 pm |

    My functions.php looks like this:

    ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ”,
    ‘after_title’ => ”,
    ));
    ?>

    How do I change this? Thanks.

  381. yimplex left a comment on February 16, 2008 at 4:19 am |

    Thanks.I’ll optimize my wp to sell in ebay.

  382. Boki left a comment on February 11, 2008 at 8:54 am |

    Thanks for article! Very easy to understand and I install additional sidebar to my blog in 5 minutes!

  383. Dan left a comment on January 29, 2008 at 7:19 am |

    I followed step by step…. in index.php there is no ” include sidebar” its somethig with “get sidebar()”.
    I’m not seeing the second sidebar :(

  384. jose berengueres left a comment on January 19, 2008 at 5:01 pm |

    great tutorial! thanks

  385. David Smith left a comment on December 29, 2007 at 8:23 pm |

    in the widgets section i got two sidebars that i created from your tutorial.. it’s great! Just trying to figure out more or less the same as “amr” is trying to figure.. how to get the bar over to the far right side instead of in the middle of the blog : )

  386. cicco left a comment on December 29, 2007 at 1:32 pm |

    i tried this tutorial with your Silver Light theme, but i get 2 sidebar with th esame content .. :(

    Where is my error ?
    Thanks

  387. Jai left a comment on December 7, 2007 at 8:54 pm |

    @Amr: You will have to use CSS for that.

  388. Amr left a comment on December 7, 2007 at 4:15 pm |

    Your tutorial on how to add a sidebar literally did save me from switching from a theme I love! Thanks!
    I have just one question. How can I make it so the sidebar will be on the left side of my blog?

  389. Jai left a comment on December 6, 2007 at 8:03 pm |

    @Restlessoul: Please post your technical question in the forums.

  390. mccormicky left a comment on November 25, 2007 at 9:03 pm |

    Thanks so much for this tutorial-I needed an easier version than the one I was using as reference(some folks just make things harder than they have to be)your method really helped me out.

  391. Faizal left a comment on November 24, 2007 at 1:25 am |

    This 4 sidebar themes looks like hero! Great!

  392. aizat left a comment on November 24, 2007 at 12:45 am |

    Nice tutorial.
    I should try this one.:-)

  393. Jai left a comment on November 23, 2007 at 9:32 pm |

    @ayahshiva : Yes, you can apply the same procedure to a theme that has 2 columns. Just increase the number to 3 in the functions.php file. Then you will have to create three sidebar files and include them in your index.php file. This number also changes in the sidebar file code accordingly.

  394. ayahshiva left a comment on November 23, 2007 at 9:29 pm |

    why not choose theme that already have 2 columns

  395. Missy left a comment on November 23, 2007 at 8:19 pm |

    I am dying to learn how to do coding and design a wordpress theme. I just need to find the time for it.

    Nice tutorial.

  396. LorentzChronon left a comment on March 10, 2013 at 7:11 pm |

    Hmm that’s odd. The theme that this post is on looks like it comments out php code like that. Here’s a pastebin of the same thing:
    http://pastebin.com/4Mbc69bM

Leave a Comment

Your email address will not be published. Required fields are marked *

What Others Say

BannerJai was awesome to work with. A port of an ASPX/HTML site to Wordpress went seamlessly, and his recreation of our look and feel were fantastic - Kevin Webster

BannerJai is a talented, creative and an enthusiastic web developer who has worked consistently to deliver high quality websites for my businesses - James Eccles

  Have Questions?   Hire Me

Send Me Your Questions

Tell Me About Your Project