This page is not compatible with the editor due to one of the following issues?

This page is not compatible with the editor due to one of the following issues?

VictoriaNguyen
Excursionist
18 2 4

Hello, 

 

I looked over this link ( https://shopidevs.com/product-page-as-a-homepage-on-shopify/ ) because I wanted the Product Page to be my default Home Page, and went with the second option, custom liquid code. It worked. However, when I try to make edits to my site it gives me this popup saying: 

 

This page is not compatible with the editor due to one of the following issues:

  • Page is redirecting to an unsupported URL
  • Page failed to load due to an error

I never got this before entering the code. How can I fix this? Any assistance would be greatly appreciated, thank you!

Replies 2 (2)

devcoders
Shopify Partner
1414 168 442

Hello @VictoriaNguyen 

It sounds like the custom liquid code that you're using to set the product page as your homepage is causing issues with Shopify's theme editor. The error message you're seeing likely occurs because the editor can't properly load or interact with the page that is being redirected to the product page.

Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!

sadik_ShopiDevs
Shopify Partner
52 6 19

Hello @VictoriaNguyen 

This issue can happen for a few different reasons. Please follow these steps one by one, checking after each step:
1. Update the Code to Work in the Shopify Editor
Your current code might be causing a redirect too soon. Try this updated version to make sure it doesn’t affect the Shopify editor:

{% if template == 'index' %}
  <script>
    if (!Shopify.designMode) {
      window.location.href = "PRODUCT_PAGE_LINK_HERE";
    }
  </script>
{% endif %}

2. Check the Product Page Link

  • Make sure the PRODUCT_PAGE_LINK_HERE is a valid Shopify product URL from your own store. Example:
https://yourstore.myshopify.com/products/sample-product
  • Avoid using external links, as Shopify may block them.

3. Try Adding a Small Delay
If the redirect is happening too fast, you can delay it slightly:

{% if template == 'index' %}
  <script>
    if (!Shopify.designMode) {
      setTimeout(function() {
        window.location.href = "PRODUCT_PAGE_LINK_HERE";
      }, 1000); // 1-second delay
    }
  </script>
{% endif %}

4. Check for Conflicts

 

  • If you have other custom scripts or apps, try disabling them temporarily and see if the issue is fixed.
  • You can also check the browser console (press F12 > Console) to see if there are any errors.

 

Please apply these steps one by one, testing your site after each change. If the issue is still there after trying everything, feel free to message me. I’d be happy to take a look and fix it for you. 😊

Sadikur from ShopiDevs

 

Found it helpful? Please like and mark the solution that helped you.
Slider Revolution - Create sliders, theme sections, banners, videos, pages, advanced animation, and social feeds.
Essential Grid Gallery - Create photo galleries, video galleries, portfolio galleries, product gallery, collection gallery and more.
EasyDisplay: Product Showcase - Easily display collections, related products, discounts, recently viewed items, and best sellers