admin管理员组文章数量:1296306
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…
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…
Share Improve this question asked Apr 15, 2021 at 12:25 MelebiusMelebius 1058 bronze badges1 Answer
Reset to default 0I’ve found this to be possible using the Customizer Export/Import plugin.
本文标签: databaseSwitching among theme customizations
版权声明:本文标题:database - Switching among theme customizations 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741613883a2388416.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论