Importing The Sample Data
You can import the sample data in two different ways, in one click or manually. First, check that all the plugins are activated on your site according to the demo you want to import, for that, check below.
Install the sample data in one click
Follow the steps below to install a demo in one click.
- First, make sure that all the plugins in the demo you want to import are activated.
- Go to Theme Panel > Install Demos tab.
- Click on the demo you want import, a popup will appear.
- In step 1, install the required plugin for the demo, in step 2, check what you want to import and import the demo.
If you have chosen to import a demo with a shop, do not forget to regenerate your images with the Regenerate Thumbnails plugin so that all WooCommerce images are the right size.
If you import a demo with a background image, you will see that there is no image selected in General Options > General Styling, so if you want to change it just add your own image, but if you want to remove it, select an image, click Save, remove the image and click Save again.
Note: If you are importing a demo where there is a shop, activate the WooCommerce plugin and click on the Not Right Now button if it is the first time you activate the plugin on your site or delete the pages created by this plugin (Shop, Cart, Checkout, etc...) because its pages are imported and assigned automatically.
Install the sample data manually
If you can not install the sample data using the One-Click import or you want to do so manually, follow the steps below.
Step 1: Install the Required Plugins
Go to Theme Panel > Install Demos, click the demo you want to import and install all the required plugins..
Step 2: Download Sample Data
The first step is to download the sample data which we have hosted on Github not only for easy/quick access but also so if you want you can follow the repository and get notified when changes are made to the Sample Data. Click the link below to access the repository and then click Clone or download > Download Zip to download the sample data.
Step 3: Import Sample Data
Once you have located the xml file you wish to import, log into your WordPress website and navigate to Tools > Import to begin the import process.
Click on the WordPress option If you haven’t already, you will be prompted to install the WordPress Importer free WordPress plugin. Just install it like you would any other plugin, and after you activate it return to this screen.
Then click the Browse button to select the xml sample data file you would like to upload, and click Upload file and import. Next Your should see the following screen.
Important: Some of the demos are very large, if your server can’t handle it or you don’t want to fill your server with a bunch of image files, do NOT check the box to download and import the file attachments. You’ll still get a good sense on how the demo works and you will be adding your own featured images so there really isn’t any point in downloading them.
The importer will give you the option to either import our demo user, or to assign the posts to an existing user on your WordPress site. We recommend that you assign the posts to an existing user (ideally your user account, since you are the one working on the website).
You’ll also see an option to import file attachments. Check this box only if you want to import all of the image and media files included in our demo.
If you see a 502 bad gateway error when importing the sample data please contact your hosting company since this is a server side error.
Click submit to import the sample data. Once complete you should see a successful import message.
Step 4: Import Settings
Most of the demos have specific options defined for the demo. So be sure to import the customizer options as well. These are located in the "oceanwp-export.json" file for the specified demo in the sample data files – example.
Follow these steps to import the settings:
- If it is not activated, install and activate the Ocean Extra plugin.
- Go to Theme Panel > Import/Export tab.
- Click on choose file and select the oceanwp-export.json file of the demo you want import.
Step 5: Import Widgets
It is very easy to import widgets. First, install and activate the free plugin Widget Importer & Exporter, then click Tools > Widget Importer & Exporter and import the widgets.wie file of the demo you want to import.
Step 6: Post-Import Steps
There are certain things a WordPress import cannot do for you during an import, so after uploading sample data:
- Go to Appearance > Menu to set your menu locations.
- Go to Appearance > Widgets to add your widgets (widgets aren’t included in a WordPress export)
- Set your homepage at Settings > Reading using the "Home" page as a static page