Theme Integration Guide: Exporting Files

Including Demo Importer in themes.

When considering the integration of Easy Demo Importer (EDI) plugin into your WordPress theme, it’s crucial to adopt the best approach for optimal results. The effective strategy is to utilize the TGMPA library to display an admin notice, guiding users to install recommended plugins, including EDI.

EDI makes it easy for theme developers to add demo import features smoothly. In this guide, we’ll explore two important parts of integrating EDI into WordPress themes: Essential File Exports and PHP Integration. These steps ensure users have a smooth and efficient importing experience, improving your theme’s usability.

In this article, we’ll begin by outlining the files you need to export from your demo site and providing instructions on how to do it. We’ll also guide you through the process of configuring the demo import through our plugin import hook.

Essential Import Files

For your demo imports, there are three crucial files you should prepare:

  1. Content Export: The WordPress content XML export file. This contains all the contents of the demo.
  2. Widgets Export: This is the widgets data file, preferably in .wie format.
  3. Customizer Export: This is the Customizer data file, preferably in .dat format.

Exporting Content XML

  • Go to your WordPress dashboard.
  • Navigate to Tools and select Export.
  • Choose All Content.
  • Click on the Download Export File button.
  • Important: Save the file in content.xml name.

Exporting Widgets data

  • Install and activate the Widget Importer & Exporter plugin from the WordPress repository.
  • Once activated, go to Tools and select Widget Importer & Exporter.
  • Click on the Export Widgets button.
  • Important: Save the file with widget.wie name.

Exporting Customizer data

  • Install and activate the Customizer Export/Import plugin from the WordPress repository.
  • After activation, go to Customize from your WordPress Dashboard -> Appearance.
  • Scroll to the bottom and go to Export/Import section.
  • Click on the Export button.
  • Important: Save the file with customizer.dat name.

Important Note: Ensure the exported files are named appropriately for proper integration. Please follow the naming convention such as:

1. The content export file - content.xml
2. The widgets file - widget.wie
3. The customizer file - customizer.dat

Optional Import Files

Certain plugins, for example the Redux Framework, Elementor, Woocommerce, etc store essential details in the options table, which are crucial for an accurate duplication of your demo site.

For a thorough replication, you have the option to include these plugin settings data. Make sure these settings are saved as JSON files for successful importing using our demo importer plugin. This step is optional but highly recommended for a comprehensive and faithful reproduction of your demo site’s configuration.

Exporting Settings as JSON

  1. Install and activate the Easy Export Settings plugin. You can download the plugin from here.
  2. Navigate to Tools -> Easy Export Settings.
  3. You’ll find a convenient multiselect dropdown containing all settings from the options table.
  4. Select multiple settings one by one from the dropdown based on your requirements.
  5. Click the Download Zip button to generate a zip file containing all selected settings in JSON format.
  6. Unzip the file to find all of your selected settings as JSON files.

Exporting Redux Framework Data

  1. Access Dashboard->Theme Options page.
  2. Go to the Import / Export tab.
  3. Click on the Download Data File button to download the JSON file.

Exporting Fluent Forms Data

  1. Access Dashboard->Fluent Forms->Tools page.
  2. Go to the Export Forms tab.
  3. Select all the available forms from the multi-select dropdown.
  4. Now click on the Export Forms button to download the JSON file.

Organizing the Demo Import Data File

  1. Create a folder: Make a new folder and name it, for example, “demo-importer.”
  2. Copy required files: Copy the exported content.xml, customizer.dat, and widgets.wie files into this newly created folder.
  3. Copy the optional files: If applicable, copy any exported optional JSON files, Redux Framework JSON file, Slider Revolution Zip file, and Fluent Forms JSON file into the same folder.
  4. Create a ZIP: Compress the entire “demo-importer” folder into a .zip file. This will serve as the import data file.
Scroll to Top