Troubleshooting

If you are experiencing issues with your theme editor, then check if your issue appears below.

Common issues

Issue: Failed to load the page

Primary domain is not configured correctly

Page is redirecting to an unsupported URL

If your storefront includes code that redirects users to URLs that are not connected to your shop, then verify that the redirect has been disabled when you visit the theme editor.

For example, this type of redirect may be added to a storefront in order to direct buyers to different Shopify stores depending on their location. This type of redirect code could exist in either your theme or an app that you installed.

To ensure your redirect does not interfere with the editor experience, replace window.location.href = with window.parent.location.href = in your theme’s JavaScript code. If that is not possible, use a reference to the window.Shopify.designMode variable in JavaScript to disable the redirect when you visit the theme editor. This variable is set to true when the storefront is loaded in the editor and false when it is not.

Page failed to load due to an error

A page can fail to load for many reasons. For example, you could be experiencing network connection issues, or your theme could include invalid liquid code. If you have verified that the above two issues are not causing this error, then try visiting your storefront using the preview theme from the Theme Actions dropdown in the sidebar of the Theme Editor. If the page fails to load, then you contact Shopify support for help with your storefront.

Ready to start selling with Shopify?

Try it free