Hello, help please
-
Hello, help please can you help I was looking for everything but could not solve the problem
I wanted to write a simple code that makes a simple import, this is an import of demo content without category and (Redux)
only want to import and all this from the theme folder locally
demo-content.xml
widgets.wie
customizer.datchoose a site logo
and select Home page (slug page home-1)
and select Blog page (slug page blog-1)but after import it gives an error
—Importing widgets—
Error: Widget import data could not be read. Please try a different file.—Importing customizer settings—
Error: The customizer import file is not in a correct format. Please make sure to use the correct customizer import file.=================
here is my code can you help?
function ocdi_import_files() { return array( array( 'import_file_name' => 'Demo Import 1', 'categories' => array( 'Demo 1' ), 'local_import_file' => trailingslashit( get_template_directory() ) . 'ocdi/demo-content.xml', 'local_import_widget_file' => trailingslashit( get_template_directory() ) . 'ocdi/widgets.wie', 'local_import_customizer_file' => trailingslashit( get_template_directory() ) . 'ocdi/customizer.dat', 'local_import_preview_image_url' => 'ocdi/preview_import_image.png', 'import_notice' => __( 'Make sure all required plugins are activated before you start. After importing this demo, you will have to configure some settings separately.', 'your-textdomain' ), 'preview_url' => 'https://www.your_domain.com/my-demo-1', ), ); } add_filter( 'pt-ocdi/import_files', 'ocdi_import_files' ); add_filter( 'pt-ocdi/disable_pt_branding', '__return_true' );
- The topic ‘Hello, help please’ is closed to new replies.