Switching among theme customizations

I am developing a website that should switch between two looks (depending on the season) using different customizations of one WordPress theme. I mean all the changes are done on the wp-admin/customize.php page, without touching files, switching plugins, etc.

I started to write down changes needed to switch the versions (e.g. disable the secondary menu, switch header image, adjust positioning, …). As the list grows, I started to wonder if there is a way to keep both versions stored in WordPress and switch them at once. I am thinking about duplicating my child theme and store each customization in one of them. However, these themes would contain identical files and only differ in the customization which is stored in the database:

SELECT * FROM `wp_options` WHERE `option_name` LIKE 'theme_mods_%';

I guess I could switch the customizations directly in the database by changing the option_name (haven’t tried it yet though) but I’d like to do it more user-friendly, so I wonder:

Is there any way, e.g. a plugin, to switch among multiple saved customizations of the same theme (without tampering with the database)?

I tried to google this topic but unfortunately, I only got a ton of results about switching WordPress themes…

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

I’ve found this to be possible using the Customizer Export/Import plugin.


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x