woosidebars icon indicating copy to clipboard operation
woosidebars copied to clipboard

Widgets turn inactive after theme update

Open rubenbrief opened this issue 7 years ago • 1 comments

Hi,

I'm using woosidebars to create multiple custom sidebars on my theme. Happens that when I update the theme for the last version, some of the widgets go to the inactive section. I did some research and appears that this happens when the custom sidebar doesn't have an ID. In other words the register_sidebar() doesn't receive an ID. Does woosibars give an ID?

I have lots of widgets on lots of custom sidebars and this theme works on many websites that suffer this update. Cannot put by hand the widgets after update.

Any help on this? Thank you

rubenbrief avatar May 24 '17 08:05 rubenbrief

Hi @rubenbrief.

When this happens, the two causes I've seen are:

  • The theme renamed it's registered widget areas. This could either be through changing the slug of the widget areas, or actually giving the widget area a specific slug if it didn't have one before (default is sidebar-1, sidebar-2, etc).
  • The custom widget areas not having a slug. This can be checked by clicking "Quick Edit" on the custom widget area you want to test, and seeing if it has a slug. If not, adding a slug will help to prevent this issue from happening in future (this is more commonly associated with "widgets disappearing", rather than sidebars disappearing).

I hope this helps to clarify. If you have further questions on this, or additional feedback, please do let us know.

mattyza avatar Jun 20 '17 16:06 mattyza