Shopify Theme Editor Not Loading? Why Your Preview Keeps Redirecting (and How to Fix It!)

Ever been in the middle of customizing your Shopify store, feeling productive, only to hit a wall when the theme editor decides to play hide-and-seek? You click 'Customize theme,' and instead of your beautiful storefront, you get a blank page or, worse, an error message about a redirect the editor can't follow.

It's frustrating, right? Especially if you're new to Shopify, like Hello32 from the community forums, who recently shared a screenshot of this exact issue. They asked, "Why? And what can I do to fix it?" It's a question many store owners have faced, and thankfully, the community stepped up with some really helpful insights.

Let's dive into what's happening here and, more importantly, how you can get your editor back on track.

Understanding the "Editor Can't Follow Redirect" Message

When you see that message, it means the page the Shopify editor is trying to preview has sent it somewhere else, and the editor simply can't keep up. As community expert alaattincagil pointed out, "It’s usually not something wrong with the theme itself." This is great news because it means you probably haven't broken your theme!

The problem is often a conflict or a setting that's causing your store to redirect visitors. The editor sees this as an obstacle, and bam – error message. Another helpful member, devcoders, echoed this, noting it's typically due to "a redirect, app conflict, or custom code."

Here's what that error might look like:

Screenshot of Shopify theme editor redirect error message

First Steps: Pinpointing the Problem Page

The first thing to figure out is whether this issue is happening on every page or just a specific one. This is crucial for narrowing down the cause.

1. Check the Page You're Editing

alaattincagil gave a fantastic tip here: "At the top center of the editor there’s a dropdown that shows which page you are editing. Switch it to Home page."

  • If your Home page loads fine, then the problem is likely isolated to the specific template you were trying to edit.
  • A common culprit? Customer account or login pages. If your store uses Shopify's new customer accounts, these pages redirect to Shopify’s own login screen. The editor can't show them because they're external. In this case, "Nothing is broken," as alaattincagil assures us. You'd edit those pages from Settings > Customer accounts instead.

Deeper Dive: When Even Your Homepage Won't Load

If even your Home page gives you the redirect error, then something on your storefront is redirecting every single visit. This points to a broader issue, but don't worry, it's usually fixable. Here's what to check:

1. Domain Connection Issues

This is a big one for new stores or if you've recently updated your domain settings.

  • Go to Settings > Domains.
  • "If you just connected a domain and set it as primary, make sure it shows as connected," advises alaattincagil. A domain that's still half set up or has propagation issues can cause redirects. Double-check that your primary domain is correctly connected and pointing to Shopify.

2. Redirect Apps

Apps are incredibly powerful, but sometimes they can interfere with the editor, especially those designed to redirect visitors.

  • Think about any country or language redirect apps you might have installed.
  • Are you using a "coming soon" app that redirects all traffic away from your main site?
  • The quickest way to test this is to temporarily "Turn them off for a minute and reload the editor," as alaattincagil suggests. If the editor loads, you've found your culprit! You might need to configure the app to ignore the editor or disable it when making theme changes.

3. Custom Code with window.location

For those who've dabbled in custom code, this is an important area to check.

  • If you've pasted any code into your theme.liquid file from a tutorial or a developer, look for lines that contain window.location. This JavaScript function is often used to force redirects.
  • If you find such code and suspect it's the issue, try temporarily commenting it out (wrapping it in {% comment %}...{% endcomment %} Liquid tags or /* ... */ for JavaScript) and then reloading the editor.

Quick Tests and Browser Checks

Before you dive too deep, there are a couple of quick checks that can sometimes resolve the issue or give you more clues:

1. Use the Theme Preview

This is a super simple but effective diagnostic tool:

  • Go to Online Store > Themes.
  • Click the … (three dots) next to your live theme.
  • Select Preview.
  • "If the preview also jumps to another address, that address tells you what’s doing the redirect," alaattincagil explains. This can give you a direct hint about the redirect's source.

2. Try Incognito Mode or Another Browser

Sometimes, browser cache or extensions can cause unexpected behavior.

  • "First, try opening the editor in Incognito mode or another browser," recommends devcoders. This helps rule out local browser issues.

Dealing with a redirecting theme editor can feel intimidating, especially when you're just starting out on Shopify. But as the community discussion shows, it's a common hurdle, and usually, it's not as scary as it looks. By systematically checking your pages, domain settings, apps, and custom code, you can pinpoint the redirect's source and get back to making your store shine. Don't hesitate to share details like your theme name and store URL in the Shopify community if you're still stuck – there's always someone ready to help you troubleshoot!

Share:

Use cases

Explore use cases

Agencies, store owners, enterprise — find the migration path that fits.

Explore use cases