Tidy Up Your HTML, CSS and Javascript

Tidy Up Your HTML, CSS and Javascript

It is always important to maintain tidy code in any project. Squarespace has a hidden shortcut to cleanup any HTML, CSS and Javascript. This shortcut applies to Custom CSS window, Code Injection as well as any Code Block in the site.

Step 1.

Go to any area where you have code to clean up. Select All, then hold Shift, then press Tab. Your code should now look much more readable. Here is a quick before and after.

Disable Lightbox Gallery on Mobile

Disable Lightbox Gallery on Mobile

How to crop Gallery Images in a Circle with Color Overlay

How to crop Gallery Images in a Circle with Color Overlay

0