This is a little repo to get you started into modifying the Squarespace layouts without jumping into their developer mode.
We are making these assumptions:
- We are using a default SqSp template
- We just want to inject some additional CSS to tweak the default template
- We want to keep track and version our changes
- And do this using Chrome Dev Tools persistent mode
- Fork this repo in your Github user space and clone it locally
- Go to your Squarespace website
- Navigate to Settings > Website > Advanced > Code Injection
- Add this line:
<link rel="stylesheet" type="text/css" href="//< your-github-username >.github.io/squarespace-css-dev/custom.css" />
in the header - Reload your public facing Squarespace website and open Chrome Dev Tools
- Look in Sources for a folder named < your-github-username >.github.io
- Right click on the < your-github-username >.github.io/squarespace-css-dev subfolder, select Add folder to workspace and point to the location on your disk where you cloned the fork of this repo.
- Right click on the < your-github-username >.github.io/squarespace-css-dev/custom.css file, select Map to File System Resource… and point to the
custom.css
file you have in the local folder selected at the previous step - Edit that
custom.css
to see changes in the browser
During development, we are going to serve the custom.css file using Github-Pages. So others will be able to review our changes. When satisfied and done, we could just copy-paste the content of it into the "Custom CSS" input form from Squarespace.