1. Home
  2. Docs
  3. Installation
  4. Demo Import

Demo Import

Before importing demo data you need to installall necessary plugins to prevent errors.
IMPORTANT: It will be much easier to understand how this theme works if you will import demo content as an example data in your wordpress. You can play around with this data and get idea how to get each feature working like on demo page.

Here we would like to show two way to import demo content. Some case one-click demo import does not work in your server then manual import definitely works at your site. You can either start building your site from scratch or import one of our demo sites and then modify it to fit your needs. We will now explain how to do the latter. 

One-Click Demo Content Importer:

At materia theme, we implement one-click demo importer. So at here just choose what layout you want to include then import it. For import content with one-click follow this step-

  1. Login to your WordPress site
  2. Check all required plugins/extension are installed
  3. Go to Appearance > Demo Content. Interface like this –
  4. Select which demo you want to import. We have 30+ homepage content. so here you can choose and click on import buttons.
  5. After that wait a couple of minutes, then you will get all content imported as well as your website is ready
  6. Done, yay! You can start building your website by changing demo contents or use some parts for your work.

One-click demo importer interface –

Manually Importing Demo Content by Uploading XML Files:

  1. Log into your Wordpress Dashboard and click on Tools > Import.
  2. Next click on WordPress.
  3. Next, choose a file from your computer and click on Upload file and Import.
  4. If you also want to import demo images then check Download and import file attachments checkbox.
  5. Next click on Submit.
  6. After data is imported go to Appearance > Menus.
  7. Then assign the “Primary menu” menu to the “Primary menu”.
  8. Next go to Administration > Settings > Reading panel
  9. Set Front page displays: to a static page and chooses the Home page for Frontpage.
  10. Save changes

Import demo via WP-CLI

 WP-CLI commands:

  • wp ocdi list – Which will list any predefined demo imports currently active theme might have,
  • wp ocdi import – which has a few options that you can use to import the things you want (content/widgets/customizer/predefined demos). Let’s look at these options below.

    wp ocdi import options:
    wp ocdi import [–content=] [–widgets=] [–customizer=] [–predefined=]
  • --content=<file> – will run the content import with the WP import file specified in the <file> parameter,
  • --widgets=<file> – will run the widgets import with the widgets import file specified in the <file> parameter,
  • --customizer=<file> – will run the customizer settings import with the customizer import file specified in the <file> parameter,
  • --predefined=<index> – will run the theme predefined import with the index of the predefined import in the <index> parameter (you can use the wp ocdi list command to check which index is used for each predefined demo import)

The content, widgets and customizer options can be mixed and used at the same time. If the predefined option is set, then it will ignore all other options and import the predefined demo data.

Was this article helpful to you? Yes No 3

How can we help?