lucalogos
Forum Replies Created
-
Forum: Plugins
In reply to: [One Click Demo Import] Customizer file = not defined!Mate, it’s my mistake. Just to let everyone know – when you have declared importer function twice, only the first one will execute.
Plugin is working fine and support is exceptional. ??
Have a great day,
Luca- This reply was modified 7 years, 5 months ago by lucalogos. Reason: Marking as resolved
Forum: Plugins
In reply to: [One Click Demo Import] Customizer file = not defined!I’m a theme author. I have downloaded theme and exported:
– widgets (using Widget Importer & Exporter plugin),
– content (using native exporter),
– customizer settings (using Customizer Export/Import plugin).Now I try to upload theme with predefined things above to another WordPress installation, and it goes well except that one customizer file ??
Here’s the function I use:
function ocdi_import_files() { return array( array( 'import_file_name' => 'TheWayILive Demo', 'import_file_url' => trailingslashit( get_template_directory() ) . 'inc/demo/thewayilive-demo-1-content.xml', 'import_widget_file_url' => trailingslashit( get_template_directory() ) . 'inc/demo/thewayilive-demo-1-widgets.wie', 'import_customizer_file_url' => trailingslashit( get_template_directory() ) . 'inc/demo/TheWayILive-export.dat', //'import_preview_image_url' => 'https://www.your_domain.com/ocdi/preview_import_image1.jpg', 'import_notice' => __( 'Some things may need to be set up manually, like menus or widgets.', 'thewayilive' ), 'preview_url' => 'https://lucalogos.com/thewayilive', ), ); } add_filter( 'pt-ocdi/import_files', 'ocdi_import_files' );
Just a note – customizer file name is different from the two above just because I tried with different filenames. The file is definitely there.
Thanks,
Luca- This reply was modified 7 years, 5 months ago by lucalogos.
Forum: Plugins
In reply to: [One Click Demo Import] Customizer file = not defined!Hi capuderg,
Thanks so much for speedy response! Everything seems to be fine in log file, except this one line:
“Customizer file = not defined!”
Thanks,
Luca