Top Nav Bar Categories

How to Make More Than 9 Text Sidebar Widgets in WordPress

UPDATE Feb 2008: If you are using Wordpress 2.3, here is an article that gives you information how to get more widgets with WP 2.3. If you are using an older version of Wordpress then read on.

If you are using the plugin Sidebar Widgets by Automattic, Inc. you’ve noticed that there are only 9 text widgets available. If you need more than 9 text widgets, here is the simple hack to increase this number.

You will need to edit the widgets.php file which is not as hard as it seems.

Here’s how:

  1. UPDATE OFFLINE. Open widgets.php from your files on your computer.
  2. SAVE BACKUP. Do Save As on widgets.php and call it original_widgets.php so if anything happens you can go back to the original. (Of course you could always download it again too if you have a problem.)
  3. CHANGE FILES. Make the following changes:
  4. FIND: widget_text_setup(), CHANGE the number 9 to your desired number where it says if ( $number > 9 ) $number = 9;
  5. FIND widget_text_register(), CHANGE the number 9 to your desired number where it says if ( $number > 9 ) $number = 9;
    for ($i = 1; $i <= 9; $i++)
  6. FIND widget_text_page(), then look for <?php for ( $i = 1; $i < 10; ++$i ) echo CHANGE the number 10 to be your desired higher number plus one. For example if you are changing the number of items to 20 then you will put 21 here.
  7. UPLOAD. Save and Upload this new via FTP to your server. You may either overwrite the old file or delete the old file and then upload the newer version. (Keep the same name of the file)
  8. INCREASE. Go into your Wordpress admin panel>Presentation>Sidebar Widgets and using the dropdown menu click on the number of widgets you want.

You now can have as many Sidebar Text Widgets as your blog can handle! Happy Plugin Time!

If you found this post helpful, you may donate below. Thank you kindly.

Technorati Tags: , , , ,

, ,

What do you think? Click any platform below to comment or read other comments.

16 Responses to How to Make More Than 9 Text Sidebar Widgets in WordPress

  1. Gaurav May 30, 2007 at 10:44 am #

    I tried it but not happening its still show max 9 only.

    I followed your above instruction very well still not successs.

    Will you please let us download your widget code i.e your edited widgets.php

    I will be delited if you mail it to me.

    Thnaks u very much for this article.

    Would like to get your feedback with attachment of edited widgets.php

    Thanks, Gaurav.

  2. Gaurav May 30, 2007 at 11:01 am #

    Please!!! Plublish The source code of your Widgets.php

    I’m not able to fetch it

  3. TallFreak June 7, 2007 at 11:55 pm #

    Where do I find this widgets.php file? I use WordPress 2.2 and it’s not in my theme editor. I did find two “widgets.php” files in other directories but none of them had the widgets_text_setup code in them.

  4. agentsully June 9, 2007 at 12:08 am #

    Hmmm, I haven’t upgraded yet. I’m still on 2.1.
    Did you install “wordpress widgets” on your blog? Or are you just using what came with WP 2.2? You may need to install “WP widgets” (by Automattic) in order to do this.

    If you do install it, then just edit the widgets.php file before uploading it to your site.

    If this doesn’t help it might be beyond my expertise, and I would refer you to wordpress.org/support. You can post a question there and usually within 1 day (often sooner) someone will respond with an answer.

    Let me know how it turns out!

  5. agentsully June 9, 2007 at 12:13 am #

    Congrats on your Sarah Silverman interview! Great site you have there!

  6. steve June 13, 2007 at 8:02 am #

    This is a fantastic tip! Been looking for ways to do this for a while now – it’s been the only thing holding me back from using the widget sidebar.

    Thanks……

    –Steve

  7. steve June 13, 2007 at 11:26 am #

    Hmmmm…my drop down now shows 20, but when I click “Save” I still only see 9 text widgets in the box above. Any ideas?

    –Steve

  8. agentsully June 13, 2007 at 1:36 pm #

    you need to drag them into the side bar from the “holding area” (i don’t know what else to call it.) Let me know if that works.

  9. steve June 13, 2007 at 1:55 pm #

    I only see 10 text widgets in the holding area…not the 20 as selected in my drop down.

  10. agentsully June 13, 2007 at 4:53 pm #

    the 10 that are in the holding area are the new 10 ones. Your original ones should still be in place and now you just drag the new ones where you want them.

    which version of WP are you running? If you’re on 2.2 then things may work differently, but I don’t think they should.

  11. steve June 14, 2007 at 12:57 pm #

    Thanks to your offline help, I discovered I hadn’t updated one line of text:

    for ($i = 1; $i

    Appreciate you taking time to assist me.

    –Steve

  12. agentsully June 14, 2007 at 8:19 pm #

    anytime, Steve! Glad it all got figured out.

  13. Gaurav July 20, 2007 at 7:45 am #

    Hi agentsully remember me ? I’m the same person who gave comment no. 3 on this page and whom you emailed me once your source code of widgets.php

    I tried your method again and again and finally succeded after 1 and half months. Too long

    Actually a point to make here, I’ve also written similar article on this but applicable to latest version of wordpress i.e 2.2 and 2.2.1 @ this url

    http://erudite.110mb.com/text-widgets-more-than-9-wordpress-sidebar/

    Hope you visit.

    Last ponit if you’re still using v2.1 of wp I think you should upgrade it quickly since it is full of vulnerabilities.

    Rds, Gaurav

  14. Forex Brotherhood August 17, 2008 at 12:43 pm #

    was hoping to use this but made a complete mess of upgrading to wordpress 2.5

Trackbacks/Pingbacks

  1. Life Learning Today - What Do YOU Want to Learn Today? » How to Install and Use WordPress Plugins - April 19, 2007

    [...] How to Make More Than 9 Text Sidebar Widgets in WordPress [...]

  2. Life Learning Today - What Do YOU Want to Learn Today? » 18 Really Useful Wordpress Plugins - April 20, 2007

    [...] How to Make More Than 9 Text Sidebar Widgets in WordPress [...]

Leave a Reply

CommentLuv badge

Loading Facebook Comments ...
Loading Disqus Comments ...

Powered by WordPress. Designed by Woo Themes

UA-1513612-1
%d bloggers like this: