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? 🙂
Related Posts:
- can require “themefolder/includes/widgets.php” in “themefolder/functions.php” yet widgets.php doesn’t run
- Moving WordPress.com theme and widget settings to self-hosted site?
- Why are my widgets not saving when being added to a sidebar?
- Duplicate and change a Theme Widget
- Current theme broken – after server and domain migration
- Changing $before_widget for certain widgets
- adding multiple sidebars on pages
- Embedded Videos (PB) – Not Available
- Hide default “Recent Comments” Widget if there are no comments yet
- Widgets menu does not appear under “Appearance” in dashboard
- Calling widget via function in themes files (hard code)
- Inject widgets from one sidebar into another with PHP
- How to conditionally display widgetized areas in theme customizer?
- Add more widget areas to a theme
- Displaying a widget in sidebar only when no other widgets rendered?
- Style the archives/category sidebar widget via theme
- Restrict access to specific widget field based on user role
- Modifying the markup in the Tag Cloud widget?
- How to override / customize existing Widgets?
- Widgets not showing on sidebars
- Using filter in the widget causes fatal error
- disable default widgets in Responsive theme
- What happened to my Inactive Widgets?
- In a specific blog, the K2 theme does not have a Text Widget
- Removing a widget via theme editor
- sidebar in 2020 theme as a widget
- How to customize a section of a widget only on certain pages or page
- Changing theme folder name disrupts widgets
- No “available widgets” (wordpress 3.2.1 multisite)
- How to change background color in the Notepad++ text editor?
- What are all the available parameters for query_posts?
- Does WordPress work without a theme?
- Is it OK to remove theme credits from footer? [duplicate]
- Using Multiple Themes in a Single WordPress Site?
- How to override the “inc” folder (or any folder) in a theme using child theme?
- Using WordPress as piecemeal in existing site?
- I’m trying to add an image in my CSS
- How to create a theme option-menu page to save user values
- How to put a banner ad between post 1 and post 2 on homepage only
- WordPress AJAX in header.php
- Add transparency to wordpress color picker?
- Can’t Install Child Theme “The parent theme is missing. Please install the “Default” parent theme.”
- Why is WordPress asking me to update my new (virtually blank) theme?
- During theme installation theme upload failed
- How to find a file in WordPress themes [closed]
- Change title slug or separator in WordPress
- How to configure PoEdit to pick up translation string?
- how to remove padding from left and right side? [closed]
- wp theme.. Could not create directory
- Free themes for commercial use
- Should a child theme share the same theme options row as the parent, or should it have it’s own options row?
- Installed theme uses get_template_directory, breaks WordPress on Windows
- How prevent someone from opening my theme directory
- Switching a Site to WordPress and Leaving It Live Until Ready
- Angular integration with homepage
- Edited Child Theme’s “header.php” but it doesn’t appear to change the file
- WordPress redwaves-lite theme Comments Quote remove [closed]
- Troubles with Walker_Nav_Menu and closing
- Different logo on homepage
- Translation not working after editing plugin template
- Want to be able to sign up subscribers as authors
- Is it acceptable for a WordPress theme to not accept widgets?
- How to restore file or theme?
- A /proc folder in wp-content?
- how do i in ignore/disable/delete a javascript call from parent in child theme?
- Problem Installing a Premium Theme– File Permission Issue on a Mac, Local Machine? [closed]
- Child theme’s stylesheet cannot load [closed]
- Is it good practice moving the main stylesheets after the plugin styles?
- When someone likes an article on my blog, they are prompted to log in on WordPress.com [closed]
- WordPress TwentyTen Theme Incompatible with Theme Unit Test
- WordPress theme logo handling (Trying to use GIF as logo)
- Changing an image in header.php
- Installing a theme on localhost, Ubuntu 16.04
- Unable to find translations in WordPress theme
- Will I lose the pages I’ve created within a default WordPress theme when adding a new theme?
- Theme title in admin shows full path [closed]
- Is there a way to see how a theme will look before buying it?
- Menu items do not “open” when mouse hover over them?
- Twenty Ten Theme: Replace the Logo by a picture without moving the code
- theme customizations gone after enabling ssl
- Simple filter to change label name of Email Adress to something else
- Show only the beginning of post
- WordPress Customazation API section in section
- Edit a template while still keeping a Landing Page on the main address
- How can I Update my Theme
- Use random theme
- Costum Theme template directoy url problem
- Replacing current theme folder by previous version of the same folder produces “undefined function get_header()” error
- Theme comment callback results nothing
- Does not work bookmarklet in the theme Tagology
- How do I block a subdirectory from WordPress theming?
- What is the general cut-off date for reviewed themes in the WordPress.org repository?
- Sub-Theme (based on Taxonomies)
- Commenting in CSS (//) equals “none”? [closed]
- Adding a wp_head hook from an included PHP file
- Deleting Widgets in sidebar in Panthea theme
- wordpress pinboard theme [closed]
- Is it possible to dynamically show different themes for different users? [duplicate]
- Table of Contents in Left Navbar [closed]
- How do I get rid of the Mindblown and the book recommendations?