Sigma Devs Support
Forum Replies Created
-
Hi @abqayyumdev
You’re very welcome! It’s wonderful to hear that you’re happy with our support. If you have a moment, we’d be so grateful if you could leave a review—it really helps us grow and keep supporting amazing users like you.
Thank you again for your kind words. Have a great day!
hi @abqayyumdev
Thanks for your patience! We’ve resolved the issue you mentioned. Please update the plugin to the latest version to get the fix.
Correct Demo Import Configuration
To get a clearer view, please paste below code into your code editor. We have added detailed comments throughout the code to help clarify how each setting works. Please take a moment to review the comments and examples provided. We believe this will help you understand the configuration and ensure it’s set up correctly.<?php
/**
* Retrieves the configuration for the Huda demo import.
*
* Please note: The function name should be prefixed according to your theme's
* naming convention.
*
* You can check the full developer documentation here including exports and PHP config:
* https://docs.sigmadevs.com/easy-demo-importer/developer-docs/
*
* Example settings:
* - 'multipleZip => true': Indicates if single demo import is supported.
* - 'demoData': Contains demo content, including pages, menus, and plugins.
* - 'blog': Defines the page slug for setting it as the homepage.
* - 'frontPageBlog': Set to true to designate the Posts page as the front page.
* - 'menus': Lists the locations for different menus, e.g., 'main-menu'
*
* @return array Configuration array for the Huda theme demo import.
*/
function huda_import_config() {
return [
'themeName' => 'Huda',
'themeSlug' => 'huda',
/**
* The 'multipleZip' setting indicates that the demo import functionality
* supports two options:
*
* 1. Full Demo Import ('multipleZip' => false): Imports all home pages
* and their associated inner pages.
* 2. Single Demo Import ('multipleZip' => true): Allows importing only a
* specific home page along with its related inner pages.
*/
'multipleZip' => true,
'demoData' => [
/**
* The 'blog' key in the 'demoData' array represents the slug of the page.
*
* To set a page as the homepage after demo import, you need to pass
* the page slug as the key. No other settings are required.
*
* For example, in this configuration:
*
* 'home-page-1' => [
* 'name' => esc_html__( 'Home Page 1', 'huda' ),
* 'previewImage' => 'home1/screenshot.jpg',
* ...
* ],
*
* Here, 'home-page-1' is the slug of the page that can be used for
* setting the homepage.
* Make sure each key corresponds to the correct page slug so that it can
* be used to set the homepage.
*/
'blog' => [
'name' => esc_html__( 'Default Demo', 'huda' ),
'previewImage' => 'https://softmetik.com/demos/wphuda-demos/demo-1-default/screenshot.jpg',
'previewUrl' => 'https://wphuda.softmetik.com',
'demoZip' => 'https://softmetik.com/demos/wphuda-demos/demo-1-default/demo-import.zip',
/**
* The 'frontPageBlog' key is a special setting used to designate
* the Posts page as the front page.
*
* If you want the Posts page (blog page) to appear as the front page after the demo import, set 'frontPageBlog' => true.
*
* If you do not require the Posts page to be the front page, simply
* omit or discard this setting.
*
* Example:
* 'frontPageBlog' => true, // Sets the Posts page as the front page.
*
* If this setting is not needed, you can leave it out entirely.
*/
'frontPageBlog' => true,
/**
* Associative array of menu locations and their corresponding names. No other configuration is required.
* Format: menu_location => Menu Name.
*
* Example:
* 'menus' => [
* // Sets 'Main Menu' to the 'main-menu' location.
* 'main-menu' => 'Main Menu',
*
* // Sets 'Footer Menu' to the 'footer-menu' location.
* 'footer-menu' => 'Footer Menu',
*
* // Sets 'Social Links Menu' to the 'social-menu' location.
* 'social-menu' => 'Social Links Menu',
* ],
*/
'menus' => [
'main-menu' => 'Main Menu',
],
/**
* Slug for the blog page.
*
* This slug should correspond to a page that is designated to display
* the blog posts. This ensures that the page with this slug is set as
* the blog page.
*/
'blogSlug' => 'news',
/**
* Array of plugins to install.
* Some example plugins are included here.
* The array key needs to be the same as plugin slug.
* You can also include a bundled plugin here.
*/
'plugins' => [
'woocommerce' => [
'name' => 'WooCommerce',
'source' => 'wordpress',
'filePath' => 'woocommerce/woocommerce.php',
],
'kirki' => [
'name' => 'Kirki Customizer Framework',
'source' => 'wordpress',
'filePath' => 'kirki/kirki.php',
],
],
],
],
];
}
add_filter( 'sd/edi/importer/config', 'huda_import_config' );There’s a step-by-step developer guide available (please check the plugin description for the link) that will walk you through how to integrate this plugin with your theme. If you have any further questions or need additional assistance, feel free to reach out. We’re here to help!
Thanks again. Have a great day!
Forum: Plugins
In reply to: [Easy Demo Importer - A Modern One-Click Demo Import Solution] ErrosHi @tuca_reis
Thank you for giving the plugin a try!
Just to clarify, this is a demo import plugin, which means it’s designed to import demo data, but only if the theme has been properly configured for it. Out of the box, it won’t work without the necessary setup by the theme developer.
If you’re seeing this message, it likely means the theme hasn’t been configured to use this plugin. We recommend reaching out to the theme author to confirm whether they’ve set up the demo import feature with this plugin.
If you’re a theme developer yourself, there’s a step-by-step developer guide available (check the plugin description for the link) that can walk you through how to integrate this plugin with your theme.
Let us know if you need any more help!
Thank you for understanding. Have a nice day!
Hello @abqayyumdev
Thank you very much for providing us with the details. We have successfully replicated the issue on our end and are actively working on a solution. Once resolved, we will release a patch to address the issue. We appreciate your patience as we work to fix this.
Additionally, we reviewed your demo import configuration and noticed a few areas that could be adjusted. After releasing the update, we will provide you with the correct configuration so you can apply it easily across your other themes. In the meantime, please refer to the plugin documentation for guidance on setting up menus, the front page, etc.
Thank you for your understanding and patience. Have a wonderful day!
Hi @abqayyumdev
Thank you for reaching out about this issue. To help us investigate it further, could you share a few details about your setup? Specifically:
- Envato Theme Check Interaction: The Envato Theme Check plugin is primarily designed to validate themes, not plugins. We’ve installed the Envato Theme Check plugin, and it did not detect any issues with our demo importer plugin. Could you let me know if there’s any specific configuration or adjustment in your theme that might be causing the Envato Theme Check plugin to interact with the demo importer?
- Demo Importer Configuration: If possible, could you also share your demo importer configuration? This will help us check your environment and better understand how your theme setup might be impacting the plugin.
- System Status Page: Could you please check the System Status page under Appearance → Easy System Status in your WordPress dashboard? Please review it for any errors or warnings that might be relevant to the theme. Additionally, could you provide the data from the Copy System Data tab? This will give me a better understanding of your environment.
These details will allow us to better understand the issue and assist you in resolving it.
Thank you for your cooperation. Have a nice day!