Because of the way these theme settings are stored as an array in the database, it can be difficult to copy them over with just copy and paste in phpmyadmin or some similar tactic.
The WP CLI option command is your friend here. If you don’t use WP CLI already, check it out! Here’s how I copied the settings from the storefront theme to a theme called storefront-sqcdy-child:
# save the existing theme settings in json format in a temporary text file
wp option get theme_mods_storefront --format=json > theme_mods_storefront.txt
# load the saved settings into the child theme option record in the database
wp option update theme_mods_storefront-sqcdy-child --format=json < theme_mods_storefront.txt
# cleanup the temp file
rm -f theme_mods_storefront.txt
Related Posts:
- How to cache bust a child theme style.css
- How to modify single.php in a child theme?
- @package & @subpackage: how to use with child themes
- How to override function in child theme
- Theme Customization API and child themes
- Git vs Child Theme
- Give priority to child theme stylesheet
- Get Parent Theme Author Name
- Get parent theme version
- WordPress master + child themes + Git workflow
- something like is_childtheme()
- Theme customizer: How do you grab the value later?
- How to maintain wp_enqueue_style dependencies set in parent theme style enqueuing
- Redefining function in child themes
- How do I check for child theme files first using include, before going to parent theme?
- How to “remove” file from parent theme
- How to override the Parent theme Function into child themes functions.php
- How to disable updates in WordPress theme
- Style.css in child theme is loaded before Bootstrap
- Dequeue only stylesheets but not inline style added using wp_add_inline_style
- Enqueue stylesheets if parent theme has more than one .css file
- replace parent theme images in child theme
- Website Broken on Activating Child Theme! [closed]
- Add post dates from child theme and change font size on homepage post
- How can I override file featured-image-first.php of Avada theme [closed]
- get_theme_mod is returning a number rather than my image file
- WP .js script file not loading
- WP Customizer Fatal Error trying to load class in child theme
- @font-face broken in child theme
- How to install bootstrap in child theme
- Child Theme vs. Jetpack Editor
- Child theme grabbing wrong location fo parent theme files
- WordPress Child Theme PHP Code Change Issues
- Create child theme after costumizing the original
- How to enqueue scripts in order of Head section
- Generate PO File
- Scratch theme needs to be a child theme, but for which parent? [closed]
- Will the use of a child theme create problems with commercial parent theme’s options?
- Linking to Child Theme PHP Files
- Use child theme on certain pages and not others?
- WordPress Bootstrap Problem
- Child Theme disable customizer defaults
- Which header is served
- Add custom function to child function.php
- Child theme problem
- Undefined functions on the server
- Changes to child theme are not visible on my site [closed]
- How do WP child-themes work? [closed]
- Is a Child Theme required?
- Moving from parent theme to child theme without losing configurations
- can the footer be included on a child theme
- ‘Recent Posts’ links open in new window, without copying the ‘WP_Widget_Recent_Posts’ class
- How change child theme’s boxed layout to fullwidth in genesis? [closed]
- javascript not being enqueued correctly
- styles from child theme not loaded for file other than style.css
- Multiple Child Themes
- How to install Bootstrap in a WordPress child theme
- Fatal error and use of undefined constant in child theme unless I redefine it
- wp_get_current_user() and is_user_logged_in() in child theme’s functions.php file don’t work
- Trouble translating a Child Theme
- Child Theme Customizer not working
- Child theme with flatsome theme crashes website
- How to make child theme in wordpress with wp_enqueue_style ? Using Enough Theme
- Customize file on inc folder on child theme
- Proper way to show admin bar in HTML5 Blank theme
- I want to edit it on my laptop as a child theme and transfer the files to my server. I don’t know how
- Adding function from parent theme to child theme
- Translated words not showing child theme
- How to create a non-responsive WordPress Theme Using Genesis Framework?
- Correct way to customise a child theme
- Stylesheet overriding in Child theme
- Modify Twentyeleven child theme CSS – How to change body font size?
- Child theme is not rendering parent and own javascripts (but css loaded properly, js not)
- Child theme stylesheet not reflecting the changes
- Best way to edit/change comment-template.php without changing the core
- How to stop customizer settings inheritance from parent to child theme?
- Making a child theme in order to update the parent theme
- change html and css in template files in child theme
- My wordpress site is crash due to excute child theme
- Why does my child theme’s enqueue of styles mess up the order of script enqueues from the main theme?
- Where can I edit/see the HTML of this WordPress free theme?
- Enqueuing multiple stylesheets with a child theme
- menu, header and footer is not shown in the appearance after creating the child theme
- The parent theme is missing. Please install the “bp-default” parent theme
- how to fix loading scripts in child theme?
- Calling Category name without the link
- Deregister wordpress script in child theme by js location
- When I change some content in function of template-tags file in inc folder then its not working and show same as loke before
- Child Theme Issue – activated but does not show in preview
- Why won’t my Custom CSS Load
- child theme performance / avoid import and minify JS files
- How to configure folders with ‘Child Theme’?
- Remove HTML from search.php of my parent theme
- Prevent child theme from inheriting a parent theme’s required file
- Child theme only loads on home page
- Edit copyright in Hesita Child Theme
- Vague Errors from VIP Scanner Plugin
- How to create my own style.css file in an wordpress child-theme
- Can anyone help me with replace genesis post excerpt with yoast meta description and if there is no meta description show the excerpt?
- How to handle a large child theme