Hi,
yes, there are plans to import theme options with the help of this plugin: https://wordpress.org/plugins/customizer-export-import/
This feature is scheduled for the next update… But I’ll update this ticket, when I make the actual update.
For now, you can “import” theme mods manually in the after import action of the plugin, like so:
function ocdi_after_import_setup() {
// Set logo in customizer
set_theme_mod( 'logo_img', get_template_directory_uri() . '/assets/images/logo.png' );
}
add_action( 'pt-ocdi/after_import', 'ocdi_after_import_setup' );
I know this is not ideal, that’s why we will implement the theme mods importer as well…
Take care!
Yeah, setting the theme_mods manually is a pain, because I have hundreds of them 😉
Would be great to use the third party plugin (which is awesome by the way).
Maybe you could have a look how this script does theme_mod import?
https://github.com/FrankM1/radium-one-click-demo-install
Hi,
that’s what we used before this plugin 🙂 Well, a slightly modified version of it.
I’ll have time to work on this at the end of the week, so thanks for the link…
Take care!
Hi,
I’ve just make an update to the plugin (version 1.1.1). I implemented the customizer settings import with the help of this plugin https://wordpress.org/plugins/customizer-export-import/.
If you want to use it, make an export file from the above plugin and use it in our plugin, more info on how to set it up in the updated FAQ section (“How to predefine demo imports?”).
I’ve tested it on our themes and it worked ok.
Please let me know, if it works ok for you too.
Take care!
I will keep you updated, when I’ve tested it out.
Thanks a lot!
Just tested it out. Working like a charm.
Thank you very much. Highly appreciated!
Hi,
no problem 🙂
I also tested it out some more, with our themes and it worked nicely.
Have a nice day!