Squarespace page blank live but fine in the editor: the fix
Squarespace page blank on the live site but fine in edit mode? Injected code is the usual suspect. How to find the broken script and fix it.
The Liite team8 min de lecture
Short answer
The cause is most often custom code: a script in Code Injection, a code block, or old CSS that runs or applies on the live site but not in the editor. Copy your code to a text file, empty the injection fields, reload the live page, then add snippets back one at a time until the page goes blank again. That snippet is the one to fix or drop.
Your Squarespace homepage looks perfect in Edit mode, but visitors see a blank page. You searched something like "squarespace page blank live but fine in editor" and every tip you found says "clear your cache." Here is what is more likely going on and how to find it.
Why it happens
People on Squarespace's community forum and subreddit describe exactly this: a page that renders in the editor and goes blank live, in at least one case right after a platform update. The explanation they give is that Edit mode doesn't run injected scripts the way the live site does. We can't confirm Squarespace's internals from the outside, and those reports are a small sample, so treat this as the most likely cause, not a guarantee.
Here are the causes, most common first.
- A script in Code Injection or a code block throws an error or waits forever. A script that runs early, hides a wrapper until "ready," or waits for an element that no longer exists can leave the page hidden. The editor doesn't trigger it, so you never see the problem.
- Old custom CSS that clashes with a template update. CSS written for an earlier version can set a section or wrapper to
display: none,visibility: hiddenoropacity: 0. Selectors that target Squarespace's internal class names are the most fragile, because those names can change when the platform updates. - A third-party script that fails or is blocked. Chat widgets, popups, tracking snippets and externally loaded fonts can fail to load. If your own code assumes they loaded, it breaks.
- Page-level code. Individual pages can carry their own header code and code blocks. If only one page is blank, the cause is probably there.
- A platform-side bug. A header dropdown bug was reported in a separate thread and may share the same trigger, but that is unconfirmed. Issues like this may already be fixed by the time you read this.
A script error alone does not blank a page in every case. It does when your code runs before the content shows, or when it changes the page itself: hiding a wrapper, replacing part of the layout, or waiting on something that never appears. That is why a one-line leftover from an old tweak can have such a large effect.
Step-by-step fixes
1. Rule out your browser
- Open the live page in a private or incognito window, with extensions off.
- Try a second browser or your phone on mobile data.
If the page shows up there, a cached copy or an extension is to blame. If it is still blank everywhere, keep going.
2. Read the console
- On the live page, press F12 (or right-click and choose Inspect) to open developer tools.
- Open the Console tab and reload.
- Look for red errors that name a script file or a line in your injected code.
- Open the Network tab and reload to find requests shown in red.
Save the exact error text and a screenshot. You will need them if you contact support.
3. Back up and empty Code Injection
- Open your site's settings and find the code injection area (look under the advanced settings section if you don't see it).
- Copy everything in the header, footer and any lock-page fields into a text file.
- Empty the fields and save.
- Reload the live page in a private window.
If the page comes back, the injected code was the problem.
4. Add the code back in pieces
- Paste back one snippet at a time.
- Save and reload after each one.
- The snippet that blanks the page is the one to repair, replace or remove.
Tip
Work from the oldest snippet to the newest. The oldest code is the most likely to depend on markup that a template update has since changed.
5. Check page-level code
If only one page is blank, open that page's settings and look for its own header code field, then look for code blocks on the page. Empty them the same way, with a backup first.
6. Review custom CSS
- Copy your custom CSS to a text file.
- Comment out or remove it, save, and test the live page.
- If the page returns, restore the CSS in chunks and look for rules that use
display: none,visibility: hidden,opacity: 0orheight: 0.
7. Test third-party scripts and blockers
- Turn your ad or privacy blocker off and reload.
- Check whether any external script in your code (chat, popups, analytics, fonts) is red in the Network tab.
- If the page works with the blocker off, your code assumes something loaded that didn't. Wrap that code so it does nothing when the script is missing.
Warning
Don't paste in fixes you found online without reading them. A snippet written for another template can hide the same wrapper that blanked your page in the first place.
Quick reference: cause, symptom, fix
| Cause | Symptom | Fix |
|---|---|---|
| Header or footer script errors | Red error in the Console; page blank | Remove or repair the script |
| Script hides content until "ready" | Page blank, no obvious error | Remove the hide rule or the wait condition |
| Old CSS after an update | Section or wrapper missing; elements hidden | Comment out the CSS, then restore selectively |
| Third-party script blocked | Page works with blocker off | Guard the code against missing scripts |
| Page-level code | Only one page is blank | Empty that page's code, then add back |
Checklist before you try again
- You backed up every code field to a text file.
- You tested in a private window with extensions off.
- You noted the Console error text.
- You changed one thing at a time and reloaded after each change.
- You checked page-level code, not only site-wide code.
What won't help
- Republishing or toggling the page in the editor. The editor isn't running the failing code, so it keeps looking fine.
- Clearing the cache only. Worth a try, but if the console shows a script error, the cache isn't the cause.
- Rebuilding the page's blocks. The content is usually intact. The blank result comes from what's injected around it.
If nothing works
If the page stays blank with all custom code removed, the problem may be on Squarespace's side. Check Squarespace's status page and help center for a known incident, then contact Squarespace support. Include the page URL, the exact console error, the time you first saw it, whether it happens in other browsers, and the fact that you already emptied Code Injection and custom CSS.
Hello, my homepage (https://example.com) displays correctly in Edit mode but is blank on the live site. I tested in a private window and in a second browser. I emptied Code Injection (header, footer) and custom CSS, and the page is still blank. The console shows: [paste the exact error]. It started on [date and time]. Could you check whether there is a platform issue with my site?Common questions
Why does the editor look fine when the live site is blank?
Based on what people report, the editor doesn't run your injected scripts the way the live page does, so a broken script only shows up for visitors. Squarespace hasn't confirmed this in the reports we've seen.
Do I have to delete my custom code for good?
No. Back it up, find the one snippet that breaks the page, and fix or remove only that. Most sites need just one change.
Could a Squarespace update have broken my old code?
Yes, that is a common pattern. CSS and scripts that depend on Squarespace's internal class names or markup can stop working when the template changes. Code that only uses your own elements is much less likely to break.
Is it safe to test by emptying Code Injection on a live site?
Yes, as long as you copied everything first. Tracking and chat tools will stop for a few minutes while you test, so do it at a quiet time.
If you'd rather not deal with this again
Liite Pages are compiled to plain HTML with no user JavaScript and have no custom code or CSS field, so an injected script can't blank one. That is also a limit: you can't add your own code to a Page. If you need your own HTML and JS, an uploaded site serves it on its own address, and keeping that code working is up to you. More in the Pages docs.