• Kirlian

    (@kirlian)


    Hello. I am currently using the Twenty eleven theme. Now I want to customize it and I saw that I should be creating a child theme. I did it creating the style.css with the @import directive.
    My problem is that I already did a lot of configuration with the original theme and when I switch to my new theme most of the configuration is gone.
    Is there any way to migrate (copy) the configuration I made until now to the new theme?
    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Samuel B

    (@samboll)

    copy any files modified to the child theme

    studio34

    (@studio34)

    I think Kirlian is referring to the configuration settings. I am looking for the same answer.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    You can’t keep configurations in settings when you switch from theme to theme, as there’s no way for WP to know that they’re really the same theme, just childe’ed.

    That said, once you configure it, it SHOULD stay when you switch away and then back.

    Thread Starter Kirlian

    (@kirlian)

    Yes that was the point. OK thank you for the answer at least now I’m aware the work has to be redone.

    studio34

    (@studio34)

    @kirlian

    I think I just found the answer by editing my MySQL database.

    In the table wp_options, there are two records with configuration information for both the parent and the child theme. The option_name field matches the parent and child theme names. I copied the configuration information from each into a text editor.

    I made sure WordPress was in the parent theme then in MySQL I copied the parent configuration information found in the option_value field and pasted it into the child theme’s option_value.

    When I switched the theme to child theme, all the parent configuration information was there.

    Good luck.

    UPDATE:
    I also had to modify a field named theme_mods_[theme name] in the same manner as above to get my custom menus to migrate.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Child theme – migrating configuration’ is closed to new replies.