Before importing data, you should export data, so you can see exactly how the custom options are represented in the resulting XML file.

Our theme is now available to import data. (include: settings for variant and blocks sample data)

If your exported file is too large, the import script may run into your host’s configured memory limit for PHP.

A message like “Fatal error: Allowed memory size of … bytes exhausted” indicates that the script can’t successfully import your XML file under the current PHP memory limit

If you have access to the php.ini file, you can manually increase the limit; if you do not (your theme installation is hosted on a shared server, for instance), you will have to break your exported XML file into several smaller pieces and run the import script at one time.

If the import process is run again with the same data file after stopping midway, it can cause duplicate data, missing data or other errors in the database.

For those with shared hosting, the best alternative is consult the host support to determine the most suitable approach for import. A host may be temporarily lift the memory limit and/or run the process directly from their end.

The following example is a quite easy introduction to import theme. The purpose of this tutorial, is to clone EM BaseTheme, which is one of several our themes. There are other themes you can ‘import’ which are a little harder to do, but once you are familiar with this easy one, you can tackle the harder ones later.

Import Theme is simple by following these steps:

  1. Step 1: Go to EMThemes > EM Themes Manager > EM BaseTheme SettingsClick on Import button to import

  1. Step 2: On the import screen, config like this:
  • Type: Select type which you want to import: Settings; Sample Data or Settings & Sample Data
  • Upload File: Choose file (.xml format) you want to import.
  • Check Data: Load XML data and check it. If any syntax error or invalide format is found, you will see the error message of the error. If the data is valid, please go to Step 3

  1. Step 3: On the import screen, choose type of data and click Import button to start.

Example Import Settings


Example Import Sample Data

Example Import Settings & Sample Data