Multiple themes can be installed on your Maropost Commerce Cloud site, but only one will be your live theme. Other installed themes are often referred to as "staging themes". It is good practice to make any major changes to your website on a staging theme first. This allows you to preview the changes before setting them live and easily roll back to your previous theme if needed.
Create a Staging Theme
To create a staging theme:
Connect to your site using SFTP and navigate to the following path:
This folder contains a list of themes installed on your site.
To create the new theme, you can either:
- Duplicate your live theme's folder (and all its contents) with a new name.
- Upload a theme from your local machine.
You can name your staging theme anything you like, but best practice is to include the year and month the staging theme was created, the original theme's name, and some information of what was changed. Examples of good staging theme names would be:
2018-12-bespoke-00123456(when Maropost Commerce Cloud designers create staging themes, the support or design case number is often included for reference)
Preview a Theme
To preview any theme installed on your site (without setting it live), you can use the
nview query string.
Return to Viewing your Live Theme
nview configuration will be saved against your browser session as a cookie. You will continue to view your site using the theme specified until you reset the
nview for your browser.
To reset the
nview configuration for your browser session and resume viewing your live site, specify an empty
nview query string on the end of your URL like below:
Set your Staging Theme Live
You can set a staging theme live from the Webstore Settings page using the Site template set dropdown menu. Detailed instructions on how to activate a new theme can be found here.