Buy me a coffee

How to add HTML code to Squarespace

In Squarespace, you can add HTML code to

  • Site wide Code Injection (Footer): HTML will appear on All Pages
  • Site wide Code Injection (Lock Page): HTML will appear on Lock Screen
  • Site wide Code Injection (Order Cofirmation): HTML will appear on Order Confirmation Page
  • Individual Page Header Injection: HTML will appear on that page only
  • Code Block (or Markdown Block): in Footer or Page Content, so HTML will appear on all pages or One Page.

#1. Site wide Code Injection

Click Website Tools (under Not Linked)

Add Html Code To Squarespace 01 MinClick Code Injection

Add Html Code To Squarespace 02 MinYou can add HTML code here

Add Html Code To Squarespace 03 Minor here

Add Html Code To Squarespace 04 Minor here

Add Html Code To Squarespace 05 Min#2. Individual Page Header Injection

Hover on Page > Click the Gear icon

Add Html Code To Squarespace 06 MinClick Advanced > Look at the right side.

Add Html Code To Squarespace 07 Min#3. Code Block/Markdown Block

When you add block, you can choose this.

Add Html Code To Squarespace 08 Min#4. Notes

  • If you add HTML code to the Page Header Injection of the Collection Page (Blog, Event, Product, Portfolio), HTML will appear on both the List Page + Detail Pages.
  • HTML tag with no value, it will appear as blank and show nothing, for example, anchor tag, <div id=”projects”></div>
  • If you are not familiar with code, you need to clearly distinguish between HTML – CSS – JavaScript code, to avoid inserting it in the wrong place.