WPDIR
Everything and everyone WordPress

How to transfer WP theme settings to child theme

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1193 Reply
    Henry
    Guest

    My parent theme has tons of settings in the Customizer and now I need to make a child version to use some custom template files, anyone know how to export/import all theme settings without losing all your work on the child theme?

    #1194 Reply
    Joe
    Guest

    https://wordpress.stackexchange.com/questions/99472/how-to-export-import-theme-customizer-settings

    Theme mod settings are stored as a single database entry in the options table.

    For example, If I look in my wp_options table in a localhost install, and find the key of theme_mods_twentythirteen, then this is the content of it:

     a:3:{s:16:"header_textcolor";s:6:"220e10";s:12:"header_image";s:84:"http://localhost/wptrunk/wp-content/themes/twentythirteen/images/headers/diamond.png";s:17:"header_image_data";a:3:{s:3:"url";s:84:"http://localhost/wptrunk/wp-content/themes/twentythirteen/images/headers/diamond.png";s:13:"thumbnail_url";s:94:"http://localhost/wptrunk/wp-content/themes/twentythirteen/images/headers/diamond-thumbnail.png";s:11:"description";s:7:"Diamond";}}

    That’s just saving the header image and colors and such for the twentythirteen theme. Copy that to another install and you copied all the theme mod settings for that theme.

    #1195 Reply
    James
    Guest

    that is quoted from Otto several years ago

    I think still accurate

    #1196 Reply
    Elijah
    Guest

    these days the easiest way is this plugin:

    Customizer Export/Import

    made by Beaver Builder team 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: How to transfer WP theme settings to child theme