Website Building » Squarespace » How Do I Run a Script in Squarespace?

How Do I Run a Script in Squarespace?

Last updated on December 13, 2022 @ 3:59 am

If you’re new to HTML and web design, learning how to code a basic web page from scratch can be daunting. And once you’ve learned the basics of HTML, CSS, and JavaScript, there’s still a lot to learn!

One of the most common questions we get from new web designers is: how do I run a script in Squarespace?

The answer is actually pretty simple:

  1. Upload your script file to your Squarespace website.

  2. In the Code Injection section of your site’s settings, add the following code to the Header:

<script src="YOUR-SCRIPT-FILE-URL"></script7gt;
  1. Save your changes and you’re done! Your script will now be running on your Squarespace website.

PRO TIP: If you are not familiar with coding, we do not recommend running a script in Squarespace. Doing so could break your site.

Note: If you’re not comfortable working with code, we recommend hiring a professional web developer to help you with this.

Morgan Bash

Morgan Bash

Technology enthusiast and Co-Founder of Women Coders SF.