Posts tagged custom javascript for squarespace
A Simple Script to Add Body Classes Based on Path Names in Squarespace

It’s always annoyed me that Squarespace doesn’t give you much page to page specificity. Clients often want to have more of a variety in different sections of their site. You can use the page ids to target specific page styles, but that’s not ideal for a couple of reasons… A solution? Use this super quick and easy Javascript snippet to add body class names to your Squarespace site. It will separate out the words that follow the ‘/’ off your main site url.

Read More