Proofmark / Guides
Shopify preview showing the live theme? Causes and fixes
Short answer: if a draft theme's preview keeps opening your published theme, Shopify's Help Center says it's almost always Cloudflare caching in front of the store. If you don't use your own Cloudflare, check whether you clicked View in the admin (it always opens the live theme), whether a script or app redirects visitors, and whether the draft has a broken Liquid file.
First, find out where the problem is
One test splits "something in this theme" from "something in this store":
- In Online Store, add a fresh free theme (Horizon, for example). Leave it unpublished.
- Preview it with ⋯ > Preview.
If the fresh theme previews properly, the cause is in your draft theme's code: go to redirects and Liquid errors. If even a fresh theme opens the live one, look at the store: Cloudflare, apps and the domain setup.
While you test, watch the address bar. A working preview keeps a preview_theme_id= parameter on your own domain, or stays on a shopifypreview.com address. If that disappears a moment after the page loads, something is sending you out of the preview.
1. Cloudflare caching
Shopify's Help Center names this as the cause when a draft theme's preview redirects to the live theme. If your domain runs through your own Cloudflare account, Cloudflare can serve a cached copy of the live store and ignore the preview.
Fix: Shopify's advice is to turn off caching on Cloudflare for all requests for Shopify. If you're not sure whether you use Cloudflare, check where your domain's DNS is managed. A domain bought through Shopify and left on Shopify's DNS doesn't have this problem.
2. The admin's View button
This one catches almost everyone. You're previewing a draft, you open a product in the admin, and click View. The product opens on your published theme, because that's what the View button does. Shopify staff have confirmed it's expected behaviour and logged it as a feature request.
Fix: stay inside the preview and navigate to the product from the store's own menus or search. Or copy the product's address and add ?preview_theme_id= followed by the draft theme's ID (the number in the theme editor's address).
3. A redirect in the theme or an app
Anything that reloads the page or rewrites the address can drop the preview:
- Custom JavaScript in
layout/theme.liquidthat setswindow.location, for example to force a language or a trailing slash. - Geolocation or market-redirect apps that send visitors to a country store.
- Age gates, pop-ups or "coming soon" apps that redirect before showing the page.
Fix: open the draft in the theme editor and switch off its app embeds (App embeds in the sidebar), then preview again. If the preview now holds, switch them back on one at a time. For custom code, search the theme for window.location and location.href.
4. A Liquid error in the draft
A section or snippet that fails to render can break the preview, and some stores then show the live theme. It happens most after copying code between themes or editing files by hand.
Fix: open the draft in the theme editor. A section that fails to load usually shows an error naming the file. Edit code also warns you about syntax errors when you save. Compare against an older version of the file (each file in Edit code has Older versions) or a working duplicate of the theme.
5. A stuck preview, or a preview that won't go away
Once you open a preview, your browser remembers it. That's why people sometimes stay "stuck" in a preview, or see the wrong theme after switching between several drafts.
- To leave a preview: click Close preview in the preview bar, or open the store in a private window.
- If the preview bar shows on your live store: Shopify's Help Center says this usually means the theme is wrongly adding a
preview_theme_idparameter to links. That parameter is meant for internal previewing only. Search the theme's layout files and.jsfiles forpreview_theme_id, or ask the theme developer. - If the preview bar is missing altogether: Shopify says custom code or an app is changing the Liquid object in
theme.liquid. Check that{{ content_for_header }}is still in the layout's<head>.
6. An expired or wrong share link
If it's someone else who sees the live theme, check the link you sent them:
- A share link from the preview bar (a
shopifypreview.comaddress) expires 2 days after you create it. Make a fresh one; old ones keep working until they expire. - The address in your own browser bar while previewing is a merchant preview. It needs an admin login, so other people won't see the draft from it.
- You can't share a preview of the published theme at all. To get feedback on changes to the live design, duplicate it and share the copy.
More on this in how long Shopify preview links last and how to share a Shopify theme preview.
Keeping clients on the preview
Clients are the people most likely to fall out of a preview. They click a link in an email two days later, or use the View button, and send feedback about the wrong theme without noticing.
Proofmark sends each reviewer their own sign-in link that opens the unpublished theme. Once they're in, they stay signed in, so there's no fresh preview link to send every round. They click anything on the page to leave a comment with a screenshot attached, and every comment records the theme, page and device it was left on. You reply and resolve in your Shopify admin. It's free for one theme and two outside reviewers.
Feedback that stays on the right theme
Free for one theme and two outside reviewers. Store staff are always free.
Add Proofmark to Shopify, free