Adding custom code injection to Squarespace
This post will show the required steps to add custom code injection to your Squarespace website, note that the feature will be available for Business Plan or higher (except for custom CSS)
♯Adding custom css
From admin page, go to Design -> Custom CSS -> Copy and paste the given snippet in the text box
Here's an interactive tutorial
** Best experienced in Full Screen (click the icon in the top right corner before you begin) **♯Adding custom code site-wide
Some time custom css is not enough, you may see I used html tags such as <script> or <style> in the answer, this is called html snippet and need to append to custom code injection
Method 1: From admin page -> Website / Pages / Website Tools (under Not Linked) / Code Injection / Footer,
Method 2: or you can use this Use this freebie tool Admin Quick Access for quickly access the Code Injection panel
There you can see 2 text boxes, header and footer, usually paste the code to end of footer textbox is suggested
Step-by-step tutorial included
Insert code injection to Squarespace Footer
Here's an interactive tutorial
** Best experienced in Full Screen (click the icon in the top right corner before you begin) **♯Adding custom code on one page only
Sometimes you just want the affect on 01 page only not the whole site. I suggest you use this method
From admin page -> Pages -> Gear Icon next to the page -> Advanced -> Paste the code in the end of the snippet
Step-by-step tutorial included
Here's an interactive tutorial
** Best experienced in Full Screen (click the icon in the top right corner before you begin) **♯Find the block/section id on squarespace
Sometimes custom code need to know specific block on squarespace via it's id, that is when you can use a chrome extension to allow inspect the name of the block
1. Install chrome extension Squarespace ID Finder
2. Open the page, click on the extension icon to get the correct id