pixelgrade / customify

Intuitive Website Styling integrated into WordPress' Customizer
GNU General Public License v2.0
28 stars 5 forks source link

Find a way to save parent theme and child theme settings mods under the parent theme #207

Closed vladolaru closed 4 years ago

vladolaru commented 4 years ago

Right now, the theme mods are unique for the parent theme and the child theme. So when someone activates a child theme it will "lose" all customizations. They are still in the database, but not applied because, as far as the theme mods system is concerned, a child theme is a completely different theme than the parent theme.

From the standpoint of Customify, this is not a good thing as it makes using a child theme later on in the life of a site a non-option. One would have to recreate all customizations.

At least, we should migrate existing theme mods from the parent to the child on the child theme's first activation.

vladolaru commented 4 years ago

One solution would be to show a notification on the Themes page, after activating a child theme, to ask the user if he or she would like to copy over the customization settings from the parent theme.

vladolaru commented 4 years ago

Done. A notice will appear upon child theme activation and ask to migrate the parent theme mods to the child (copy the values).