Switching Themes

When running theme tests, you may occasionally need to make changes to your main theme while the test is active, or publish a new main theme entirely.

For example, if your business is running a sale while a theme test is ongoing, you'll want to make sure that the sale is represented in the same way on both themes, to prevent interaction with the test data for the changes you are testing.

Depending on the types of changes being made, there are a few different methods to go about this.

Publishing a new main theme while a theme test is active

In the case that you need to publish a new main theme while your theme test is active, Shoplift will automatically update your Original (A) theme in your test to your new main theme.

Please note that the usual guidelines around theme compatibility still apply. To learn more about theme compatibility as it pertains to theme tests, see theme compatibility.

Updating your B theme to match your new main theme

In the case that you published a new main theme with changes that might impact your test, you will want to ensure that your Variant (B) theme includes the same changes made to your main theme. There are a few options for updating your Variant (B) theme to match your main theme, and the best method will depend on the scope of changes made to your main theme versus the scope of the changes you are testing on your Variant (B) theme.

Make the same edits on your Variant (B ) Theme in the Shopify Theme Editor

In the case that the scope of changes made to your new main theme are smaller than the scope of changes you are testing, it is easier to make the same changes to your Variant (B) theme from the Shopify Theme Editor or Code Editor.

To do this, open up the Theme Editor for your Variant (B) theme from Shopify or Shoplift. Make the changes you recently made to your Original (A) theme, and hit "Save". Once you save your changes, your B theme will include these changes in the test.

Update your Variant (B) Theme to a new theme within Shoplift

In the case that the scope of changes made to your new main theme are larger than the scope of changes you are testing, it may be easier to swap out your existing Variant (B) theme for a new theme that is based off of your new main theme, and then reimplement the changes you are testing.

If this is the case, duplicate your main theme, and reimplement the edits that you are currently testing.

Then update your Variant (B) theme in Shoplift to this new theme.

To do this, navigate to your Test Report, and click the Options menu (three dots) next to your Variant (B) theme. You will see a "Swap Variant (B) Theme" button. Click this button to open up your Theme Library.

Select the theme you recently created, and want to use to replace your existing Variant (B) theme. When selected, your Variant (B) theme in the test will automatically update to this new theme.

Last updated