SQUARESPACE GUIDES

How to add custom code to Squarespace

Squarespace can do a lot of cool things, but when you want to push past those template limitations, custom code is the best way to make your site unique. You’ve got a few different ways to add code, and this guide will help you figure out the right method for your project.

Before we dive into the how, lets’s talk about the what. There are three types of code commonly added to a Squarespace website: HTML, CSS, and Javascript.

  • HTML stands for HyperText Markup Language and it’s the most basic form of code to create content of a website.

  • CSS stands for Cascading Style Sheet. CSS tells a computer browser how your site looks; fonts, colors, spacing, hover effects, all that good stuff. CSS can not break your website because it can’t change the way it works.

  • JavaScript - sometimes referred to as JS - is the code that tells a computer broswer how your site acts; things like animations, pop-ups, or third-party tools. Javascript can change the way your website works, so use it with caution!

Pro Tip: You can add CSS and HTML on any Squarespace plan, but JavaScript requires Core or higher.

Three main ways to add code to Squarespace

Access to these options depends on your Squarespace subscription level

Adding custom code to individual pages changes based on the page type.

Next
Next

Changing One Page with Code