Disable scripts in edit mode on Squarespace [How to activate safe mode]
Sometimes you need to view your Squarespace website in “safe mode”.
What this means is that you disable all of the scripts you have running on your website such as code blocks and embed blocks featuring scripts such as HTML and JavaScript.
Disabling them will simply show the code blocks when you view the website, not the end product of the scripts, allowing you to see exactly where they are, something that’s tricky when you aren’t in “safe mode”.
Whilst this is definitely a more advanced requirement, it’s a great tool to have in your back pocket, especially if you’re building larger, code-heavy websites.
Watch the video
Check out the YouTube video below 👇
It couldn’t be easier to enter safe mode. Simply head to the dashboard for your Squarespace website and in the URL add /safe to the end whilst in your editor.
So for instance, your editor URL looks like this:
yoursitetitle.squarespace.com/config
All you need to do is format it as follows:
yoursitetitle.squarespace.com/config/safe
This will disable all of the scripts you have running on your website when you preview the site. The scripts are disabled in the back end for you whilst you’re viewing in safe mode, on the front end for any user who may happen to land on your website however, the scripts will be running as normal.
In all honesty this is a trick aimed mainly at professional Squarespace developers who are just checking something and want to view the website with no code running.
📩 Join the inner circle to get exclusive code updates
That being said, it’s always useful to have these tricks up your sleeve so be sure to bookmark this article in case you need to return to it in the future!
Found this article useful? Make sure you check out the rest of my Squarespace tutorials and expert tips.
Your designer
I'm Sam, an award-winning Squarespace web designer. I have worked with every type of business, building platforms for solo entrepreneurs through to multi-million dollar corporations. If you want to discuss a potential project, you can email on sam@bycrawford.com or get in touch with me here. Alternatively, you can book in a free 15-minute consultation call here.
Want more?
This article was written by Sam Crawford, one of the world’s leading Squarespace website designers.
Sam is an official Squarespace Expert, official Squarespace Partner, official Squarespace Community Leader, official Squarespace blog contributor, official Squarespace panelist, Squarespace educator and multi-award winning Squarespace designer.