6

I've recently developed a parent theme that makes heavy use of the Theme Customization API. Is there an easy way to port these settings when a user activates one of my child themes? Currently, the data previously saved in the Customize screen disappears when activating a child theme. Of course, once they reactivate the parent theme, the settings return.

Any dealt with this yet?

2
  • 1
    Are you using the Settings API or the Theme Mods API for your Theme settings/Theme Customizer integration? Commented Feb 7, 2013 at 18:37
  • Using Theme Mod. All settings on the "Customize" screen, calling them in my theme with get_theme_mod.
    – clark
    Commented Feb 8, 2013 at 14:44

1 Answer 1

1

There is already an answer about this question with explicable examples How do I get a parent theme modification from a child theme?.

You can also check about get_theme_mod here https://developer.wordpress.org/reference/functions/get_theme_mod/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.