About the Author

I am a mother and writer. I am also a student of life. I love to learn and share my learnings with others. I hope you find some value in your visit today. Thank you for reading and welcome. If you're new here be sure to check out my Top Posts page.

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: , , , ,

Powered by Gregarious (21)
StumbleUpon It!

Similar Posts

RSS Feed for This Post13 Comment(s)

  1. Gaurav | May 30, 2007 | Reply

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

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

    I’m not able to fetch it

  3. TallFreak | Jun 7, 2007 | Reply

    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 | Jun 9, 2007 | Reply

    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 | Jun 9, 2007 | Reply

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

  6. steve | Jun 13, 2007 | Reply

    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 | Jun 13, 2007 | Reply

    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 | Jun 13, 2007 | Reply

    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 | Jun 13, 2007 | Reply

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

  10. agentsully | Jun 13, 2007 | Reply

    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 | Jun 14, 2007 | Reply

    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 | Jun 14, 2007 | Reply

    anytime, Steve! Glad it all got figured out.

  13. Gaurav | Jul 20, 2007 | Reply

    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

2 Trackback(s)

  1. From Life Learning Today - What Do YOU Want to Learn Today? » How to Install and Use WordPress Plugins | Apr 19, 2007
  2. From Life Learning Today - What Do YOU Want to Learn Today? » 18 Really Useful Wordpress Plugins | Apr 20, 2007

RSS Feed for This PostPost a Comment


 Powered by Max Banner Ads 
  • Subscribe For Free!

    Via Reader

    Subscribe

    Via Email

    What is RSS?

  • Sponsors


    blog advertising is good for you
  • Some Great Books to Check Out

  • Need Something? Buy It at Amazon to support Life Learning Today. Free Shipping on Orders over $25

  • Have you enjoyed Life Learning Today? Support us with a donation. Thank you kindly!

Close
E-mail It