Marina_Kir Posted March 13, 2021 Share Posted March 13, 2021 Hello everyone, I hope you are all doing well, I'm encountering a peculiar issue with the Editor. I've inserted a code block with a few lines of jQuery that dynamically hide a couple of sections on my homepage. I've deliberately put this script in a code block and not as code injection, so that the Editor would disable it while I'm working on the site. But Squarespace inconveniently loads the script when I'm in the Editor instead of showing me the Safe Mode notification -_- Do you know how to prevent this from happening? Cheers, Marina ✨ Link to comment
Solution creedon Posted March 13, 2021 Solution Share Posted March 13, 2021 Is is possible you turned on Preview in Safe Mode? See Disable scripts in preview (If the disable scripts message doesn't appear automatically, step 1). Let us know how it goes. Marina_Kir 1 Find my contributions useful? Please like, upvote, mark my answer as best , and see my profile. Thanks for your support! Link to comment
Marina_Kir Posted March 23, 2021 Author Share Posted March 23, 2021 Thank you Creedon! It worked like a charm 🙂 creedon 1 Link to comment
bauerjon Posted March 26, 2022 Share Posted March 26, 2022 I also had an issue where my entire site crashed and couldn't even disable scripts in the editor, no matter what I tried. My fix was to, very quickly, run this from dev tools console after the square space editor loaded to remove the site preview iframe: $('#sqs-site-frame').remove() Hope this helps someone! Link to comment
paul2009 Posted March 26, 2022 Share Posted March 26, 2022 3 hours ago, bauerjon said: I also had an issue where my entire site crashed and couldn't even disable scripts in the editor, no matter what I tried. You can put your site into a "safe mode" that prevents custom code from loading by adding "/safe" to the URL like this: https://your-site.squarespace.com/config/safe/ Marina_Kir 1 Improve your online store with our extensions.About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. Content: Links in my posts may refer to SF Digital products or may be affiliate links.Catch up on all the release notes and announcements 2023 [for Circle members only] (there's a public version here)Buy me a coffee Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment