Square42 Design

View Original

Fluid Engine Spacing Issue with Code Block Warning Message

If you are using scripts in code blocks in Squarespace to add custom code to your website, you may have come across a warning message that appears instead of rendering the script. This warning message is simply a note from Squarespace that embedded scripts are disabled whilst editing. Although this is worth noting, it causes a problem in Fluid Engine as the warning message itself takes up a number of rows, which when saved become blank spaces underneath the code and create excess padding that can’t always be removed.

In this situation, I have found that hiding this Embedded Scripts warning message is possible via a few lines of Custom CSS (see grey box for style code).

Please give this a go yourself and let me know if it works!

html.squarespace-damask .sqs-blockStatus, .sqs-block .removed-script {
display: none !important;
}