Tuesday 07 February 2012

WordPress 3.0 Widget Bugs – Widgets Not Saving

iStock_000016286500XSmall

Now that WordPress 3.0 has been out for a couple of months I have had the chance to use it on a couple of new websites. And I have to say, so far the experience has been pretty impressive. However, there seem to be some odd bugs in the widget system.

The bug presents itself when you try to add new widget areas to the site. At first everything seems to be working correctly and you see the widget areas listed in your WordPress admin, but none of the changes will save. No matter what, some of the widgets areas won’t save the widgets or options.

After a couple of hours of pulling out my hair trying to figure out why some of my widgets were working correctly and some were not I finally found the answer… For some reason WordPress 3.0 will not accept capital letters in the widget area IDs!

If you use IDs like “bannerOne” or “headerArea” your Widget Areas will appear to be working in the WordPress admin panel, but none of the widgets you add will actually save state. To get around this, you must convert all of your Widget IDs in the functions.php file to lowercase names and you may also need update your template if you call the Widget Areas by ID.

About the author

Founder of Eos Designs and co-founder of iPrintEasy and a number of other web businesses - an entrepreneur with over 10 years of experience in Internet Marketing - Zach understands what it takes to be successful online and specializes in the development of advertising campaigns and marketing plans for start-ups.
  • http://dentfix.ro Richard

    nice! never crossed my mind to test that one…

  • http://imagenweb.mx Pepe

    You are right, setting ID to lowercase solve the trouble. Thank you very much! you save me!

  • http://twitter.com/theclawtheysay Darryl The Claw

    That was exactly it – thanks!

  • http://twitter.com/mikedauz mikedauz

    lowercase in the ID. i was screaming at the monitor. Thanks a lot for this.

  • Guest

    Not sure which file.  Do you mean wp-content/themes/name/functions.php?

Powered by WordPress | Privacy Policy | Web Design Miami