Exporting a GeneratePress Site

You can submit your own GeneratePress Sites to us to be included in GP Premium, or to package up in your own plugin that you can provide to your users.

This article will go over how to export your Site.

If you wish to sell your own GeneratePress Sites, they must be approved by us first. Sites won’t show up in the GPP Dashboard unless the domain they’re being hosted on is verified.

Bundling your Sites in GP Premium is a great way to gain exposure, we’re always happy to receive submissions!

Terms

Since we want to maintain quality and security, all Sites must adhere to the terms found here.

Building the site

You should build the site at a live URL that can be previewed by the user. When you export the site, all site images are connected with this URL. During the import, the images are downloaded from that live URL, and imported into the user’s Media Library. If the site URL changes or is not reachable, the images won’t be downloaded for the user.

Sites are meant to be small and relatively simple, if you build the site to be too large, the user may run into timeout issues when importing it.

The point is to give the end-user a head-start in building their own website.

Menus

When creating your menus, be sure to add the name of your Site after the name of the menu. This prevents any sort of conflict with other Sites.

For example, if I’m creating a new menu for my main navigation, and my Site is named “Classic”, I would name my menu: Main Navigation – Classic

Pages

Be sure to delete any trashed pages.

Posts

Be sure to delete any trashed posts.

Media Library

The media library is one of the largest aspects of these sites that need to be imported. Make sure the images you use are optimized, and delete any images or files that aren’t being used on the site. Doing this will drastically reduce the size of your content file.

Plugins

When you export your site, your active plugins will be exported to the file and imported automatically when the user installs the site.

Be sure to deactivate any unnecessary plugins before exporting your site. We don’t want the importer wasting any time installing plugins aren’t aren’t 100% necessary.

Try to keep the number of plugins to a minimum, and don’t export plugins that don’t contribute to the presentation of the site. For example, caching or SEO plugins should be left up to the user and shouldn’t be imported.

Plugins that have Dashboard settings need to be manually integrated into Sites. So if the plugin has a page with options (Settings > My Plugin Page), it likely won’t work with Sites unless it’s listed below.

Plugins that are used on pages (shortcodes, page builders etc..) and don’t have Dashboard settings should work straight out of the box.

The following plugins are compatible with Sites:

  • WooCommerce
  • Elementor
  • Beaver Builder
  • Menu Icons
  • Ninja Forms
  • Social Warfare
  • Elements Plus
  • Ank Google Map
  • WP Show Posts

Only plugins hosted on WordPress.org can be installed automatically for the user. If you export a site with a pro plugin, the installer will let the user know that they must manually install that plugin.

Exporting options

First, we need to export options.json. To do this go to Appearance > GeneratePress and click “Advanced” in the Export area.

Make sure all modules are checked, and check the “GeneratePress Site” option.

Now export, and save the file as options.json inside a folder.

Exporting content

Content is next! Go to “Tools > Export” and export all of your content. Save the file as content.xml within the same folder as your options.

Exporting widgets

If your site has widgets, we need to export them. Install and activate this plugin, then go to “Tools > Widget Importer & Exporter” and click “Export Widgets”.

Save the file as widgets.wie, and place it in the same folder.

Be sure to deactivate the plugin once you’re done. You don’t want it to be activated if you have to export your options again, as it will then be included in your Site.

Take a screenshot

The screenshot should be an accurate representation of what the site looks like once it’s imported.

It should be in PNG format, and should be 600×600 pixels.

Save it as screenshot.png within the same folder.

Package it up

Your folder should now container the following files:

  • options.json
  • content.xml
  • widgets.wie
  • screenshot.png

Zip up the folder, and submit it us here.