Copy customizer options to child theme


I am using the OceanWP theme and customized it with the WordPress Customizer feature. Then, I created a child theme based on OceanWP, because I introducted some new shortcodes and did not want to alter the base theme. Unfortunately, when I switch themes, all my customization is lost.

I know that the customization is stored in the WordPress options table. I found theme_mods_ocean and copied the content to theme_mods_myChildTheme. I can store the changes, but as soon as I reload the blog, the database entry is reverted to its initial value.

How is this possible? Is there any other place where the customization is saved and restored from? I do not want to re-configure the entire child theme, if possible.

, , user1438038 4 years 2020-07-10T07:10:30-05:00 0 Answers 58 views 0

Leave an answer