Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1321877

    Thank you for the Enfold theme.

    We have built an Enfold child theme and we’d like to export that theme to other WordPress installations we are creating. We export both the theme settings file and the layout builder file on the original site. On the target installation we import both settings files. The logo and colours seem to be imported OK. But the main menu has not been setup at all and the widgets are the default Enfold ones.

    I’ve tried filtering the import to just do the main menu but that made no difference. I’ve exported the settings file again but no joy. I’ve tried on two fresh installation but the problem persists.

    How can I import my theme settings so that the new install looks like the original please?

    #1321900

    Hi,
    for those interested I’ve done this using wp cli
    ### 1. Export the widgets from our theme, e.g. from dev
    wp option get sidebars_widgets –format=json > /tmp/widgets.txt
    wp option get widget_text –format=json –allow-root > /tmp/widget-text

    ### 2. Import them into the target
    wp option update sidebars_widgets –format=json < /tmp/widgets.txt
    wp option update widget_text –format=json –allow-root < /tmp/widget-text

    Now menus:
    ### export menu
    wp menu export main-menu –filename=main-menu.json –allow-root

    ### import menu
    wp menu import /root/ffc_vhost/main-menu.json –allow-root

    BTW you can also export/import the theme settings:

    wp option get avia_options_enfold_child –format=json –allow-root > /tmp/enfold-child
    wp option update avia_options_enfold_child –format=json –allow-root < /tmp/enfold-child

    Please close this ticket.

    #1322101

    Hi,

    Great, I’m glad that you found a solution, and thanks for sharing it. I’ll go ahead and close this thread for now then, please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Export -> Import theme settings does not setup menu or widgets’ is closed to new replies.