Switching themes without losing widgets?

The other day, I switched from 2010 default them to Semiologic, then back. When back to the 2010, all my appearance/widgets had gone back to the default.

Does this often happen? What is the best practice? Should I always do a database backup before trying new themes, then restore if I don’t like it? Or is there something simple I might have missed?

1
1

Storing widgets is complex topic. Basically it is such a multi-level-array-mess on the inside that very few people try to make sense of it (and even fewer succeed). 🙂

As far as I understand it myself while we can manipulate cute sidebar names on the surface, deep inside it is getting deconstructed to numerical IDs. So when you switch between themes amount and order of available IDs shift and widgets go haywire.

In theory any widget that can’t find its designated place is supposed to land in “Inactive Widgets” area. In practice – who knows. I experienced widgets disappearing, appearing, duplicating and whatever.

So if you have any kind of complex widget setup I highly recommend not to experiment with themes on it. I have stockpiled idea to do reliable widget import/export, but it will take me plenty more time to gather enough courage to touch that. Did I say it is a mess inside? 🙂

Leave a Comment