Timeline for Preserving theme settings in child theme
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 19, 2021 at 14:46 | comment | added | Zeljko Ivanovic | Thumbs up, This worked for me. Please mark this as solution. | |
Oct 24, 2019 at 7:43 | comment | added | Marco Panichi |
@fuddin the theme name is the name of the folder of the child theme; for example: parent theme settings are identified by the option_name 'theme_mods_parent-theme-name'; child theme settings could be identified by the option_name 'theme_mods_parent-theme-name-child'. You can perform a select on your database in order to view that clearly: SELECT * FROM wp_options WHERE option_name LIKE "theme_mods_%"
|
|
Apr 30, 2018 at 14:12 | comment | added | user2238 | When you say, rename using the child theme's name, what specific name do you mean? I dont understand where to get the child theme name from. | |
Nov 24, 2017 at 3:26 | comment | added | Mark Kaplun | @Eoin the more questions I read about child themes, the less I like the limitations of it. It seems like for any non trivial change in the parent theme you will have to reevaluate the child theme code. If all you do is CSS, there is little problem, but for anything else reevaluation is needed. the OP here will need to make sure he syncs the options with the parent theme on each upgrade (in case a new option with non empty default value was added). I find myself advocating against using child themes, and instead use git to branch the "parent" and make merges when there are updates. | |
Nov 24, 2017 at 0:16 | comment | added | Eoin | What is a better option @MarkKaplun? I think this solves the problem the user is asking | |
Mar 31, 2015 at 7:52 | history | edited | Pieter Goosen | CC BY-SA 3.0 |
added 4 characters in body
|
Mar 31, 2015 at 7:34 | comment | added | Mark Kaplun | And when the parent theme updates and adds new options, what do you do then? | |
Mar 31, 2015 at 7:22 | review | Late answers | |||
Mar 31, 2015 at 7:33 | |||||
Mar 31, 2015 at 7:07 | review | First posts | |||
Mar 31, 2015 at 7:21 | |||||
Mar 31, 2015 at 7:05 | history | answered | andrejm | CC BY-SA 3.0 |