Author: Дмитрий

How to create Import Demo button for a wordpress theme

1) install plugin One Click Demo Import 2) add this code in theme finction.php function ocdi_import_files() { return array( array( ‘import_file_name’ => ‘Demo Import 1’, ‘categories’ => array( ‘Category 1’, ‘Category 2’ ), ‘local_import_file’ => trailingslashit( get_template_directory() ) . ‘ocdi/demo-content.xml’, ‘local_import_widget_file’ => trailingslashit( get_template_directory() ) . ‘ocdi/widgets.json’, ‘local_import_customizer_file’ => trailingslashit( get_template_directory() ) . ‘ocdi/customizer.dat’, ‘local_import_redux’ […]

Read More