Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Appearance->Widgets: Why widgets mysteriously disappear sidebars? WordPress

I have a sidebar registered as <strong>Homepage Sidebar </strong>in functions.php

I went to Appearance -> Widgets and added text widgets for my main sidebar. I came back later and they mysteriously disappeared. However the sidebar still shows up fine on the frontend.

Any known causes/solutions?

Answers (4)

2011-05-28

Kailey Lampert answers:

Anything change in your function.php file?


Josh Adams comments:

Since this issue arose, I've been trying to fix it so what I did was remove two unessential "register sidebar" entries in functions.php (they came with the theme I'm customizing).

I believe prior to having the problem, one of my programmers added an extra sidebar to functions.php. Not sure if that info helps.


Josh Adams comments:

Let me add that removing the extra sidebars didn't help.


Kailey Lampert comments:

Do your registered sidebars have names/ids specified? For example:

register_sidebar(array(
'name' => 'Blog Sidebar',
'id' => 'blog-sidebar',
'before_widget' => '<li id="%1$s" class="widget %2$s">',
'after_widget' => '</li>',
'before_title' => '<h2 class="widgettitle">',
'after_title' => '</h2>',
));


Then call the sidebar with the id:
dynamic_sidebar('blog-sidebar')

If the id isn't set, it can cause problems when other sidebars are added/removed.

2011-05-29

Denzel Chia answers:

Hi,

If you have not tried a widgets reset plugin, you can try using this.
http://justintadlock.com/archives/2009/03/03/widgets-reset-wordpress-plugin

This is a quote from that article, explaining why widgets are gone.

<blockquote>
Basically, widget areas (aka sidebars) with unique IDs will throw things off. Widgets are added according to a widget area’s ID. When you change themes that have different IDs, the widgets are no longer where you might expect them to be.
</blockquote>

<em>But this plugin will totally remove other widget data as well, so please read that article first, if you decided to try it out.</em>

Thanks.
Denzel


Josh Adams comments:

Thanks Denzel, I'll give this a shot.

2011-05-29

Graham Kite answers:

I've been guilty of have multilpe admin windows open at the same time.
I had an experience where everything looked right. I shut down came back the next morning and something was not working.

After looking through the code, I had cut out a ;

It is possible you have done the same thing?

I'd be checking your code for an error like that right where your content is missing.

2011-05-29

Sébastien | French WordpressDesigner answers:

Maybe have you change the theme