How To Add Custom Fonts To Your Squarespace Website
When to use a Custom Font
There are hundreds of fonts built in to Squarespace for you to choose from, but if youโre reading this article chances are the font you want to use is not one of them. (Though it is worth double checking because they do have a lot of Google fonts and Adobe fonts included by default.)
If youโve searched in Site Styles and still canโt find your custom font, then you can still add it to your Squarespace site using custom CSS.
Side Note: if youโre trying to add an Adobe font to your Squarespace website (and you donโt already see it in the list of available fonts on Squarespace), the process is different โ you can read how to do that here.
Upload the Custom Font File
Assuming you have the font file for your custom font (ending in .ttf, .otf, .woff, or .woff2), you would first need to upload the font file to your website. With the current version of Squarespace at the time of writing this article, you can upload the file from the Custom CSS section of your Squarespace website:
Website โ Pages โ Website Tools (at the bottom under Utilities) โ Custom CSS
Alternatively you can also just type / from anywhere in your Squarespace website dashboard to bring up the search bar, and type in CSS to jump to the Custom CSS page.
Click on Custom Files under Custom CSS and upload your font file.
Define the Font in CSS
Next we need to define the font so we can use it in the CSS code. Weโll assign it a name that we can refer to later in the CSS, and link that name to the path of the font file we just uploaded. In the CSS, paste the following code:
@font-face { font-family: ''; src: url('') format(''); }
Inside the quotes next to font-family, type the name of the font. It doesnโt need to be the specific name of the font file, you can really name it anything โ you just have to make sure you use this exact name elsewhere throughout your CSS.
Click inside the quotes next to url so that your cursor is positioned in between the single quotes. Next, click the Custom Files dropdown, and click once on the font file you just uploaded. Clicking on a file in the Custom Files menu will paste the file path directly into your CSS wherever your cursor is.
Inside the quotes next to format, type โtruetypeโ if your font file ends in .ttf or .otf, โwoffโ if your font file ends in .woff, or โwoff2โ if your font file ends in .woff2.
Your code should look something like this:
@font-face { font-family: 'Nineties'; src: url('https://static1.squarespace.com/static/66ac5f704b40243b1c9d610b/t/6815189b1eff7d3e92ad092f/1746213019259/bringbold_nineties_regular-webfont.woff2') format('woff2'); }
Assign Custom Font to Specific Text Styles
Okay now we are ready to start assigning the font to whatever text style(s) you want it applied to. There are several different text styles we can use for each text block (as Iโm sure you are aware).
So all you have to do is choose the text styles that you want to apply your custom font to (e.g. Heading 1, Heading 2, etc.) and add code to assign the font to those text styles. Each text style has a corresponding selector that can be used to reference it in the CSS code:
Heading 1 โ h1 Heading 2 โ h2 Heading 3 โ h3 Heading 4 โ h4
Paragraph 1 โ .sqsrte-large Paragraph 2 โ p Paragraph 3 โ .sqsrte-small Monospace โ pre
Note that Paragraph 1 and Paragraph 3 are the only 2 that have a period before them so make sure to include that.
Letโs say I want all the headings except Heading 4 to use this display font. Weโre going to type in the CSS the corresponding selectors (in green above) that we want separated by a comma. Then set the font-family to the name you chose above when defining the @font-face. Add !important to force it to override the styles set by Squarespace. Continuing with my example above, hereโs how that might look:
h1, h2, h3 { font-family: 'Nineties' !important; }
Now you should see the new font being used on your website.
Changing the Font Size
If you want to change the size of the different text styles (like Heading 1, Heading 2, etc.) you can do that in the Site Styles menu. Just be aware that your custom font will not show up in Site Styles, since we added it via code. So while you can change the other font attributes here like size, line height, or letter spacing, the actual font will not match up with the custom font youโre using.
If there are any other elements throughout your site that you want to apply the custom font to (like buttons or blog titles) youโd just need to find out the selector to use for that particular element, and assign the font-family property to it in your CSS code. To learn more about how to use CSS in Squarespace you can check out this video.
You can also add multiple custom fonts to your website โ but just be aware that this can increase your websiteโs load time if you add too many.
Sign Up to my Email List
Get Squarespace news, tips, and answers to reader-submitted questions, delivered straight to your inbox.
If youโre stuck on something with your website or have an issue you canโt figure out, submit your question here and I might feature it in a future newsletter!
I hope you found that helpful! If you did and want to say thanks, consider buying me a coffee โ๏ธ