InsideTheSquare.co

View Original

How To Add A Google Font to Squarespace

See this content in the original post

This tutorial was recorded in Squarespace 7.1 and will not work on legacy sites built on version 7. For more information, visit insidethesquare.co/themes

This tutorial has been updated for 2024 There was a major URL change that prevents some Google fonts from being used, and the Google interface is slightly differnt. Make sure you follow the steps to import the correct font file.

In your Site Style menu, you have access to the entire Google Font database. So why would you need to install it on your Squarespace site? If you want to use a google font on something that you cant edit directly in site styles menu, like an accordion block title or a summary block description, or a list section button.

For that you’ll need to add the Google font to custom CSS, and that’s exactly what you’ll learn how to do in this tutorial.

Here are the new steps, updated for the 2023 Google font interface:

  1. 1. Visit fonts.google.com to select a font you want to use.

  2. Select your bag/cart icon to see the font family you have selected

  3. On the Web options, choose the @import toggle

  4. Copy the code for this font

  5. Open the Squarespace editor

  6. Navigate to Website → Website Tools → Custom CSS

  7. Paste the code here

  8. Remove the style brackets, including the carrots, so your code will start with @import

  9. Remove the 2 in the url for CSS2

    Please note - most of the fonts in the Google font database will work, but some of the latest have not been updated and will not work with this method. if your font doesn’t load using only CSS, you’ll need to install the font following these instructions: developers.google.com/fonts/docs/css2

  10. Copy the font family name from Google

  11. Using the selector or block id & asterisk, assign the font to a specific item in Squarespace by using it’s font name

  12. Use additional text & font properties to change the style of the font you’ve uploaded to your Squarespace site

  13. Save your custom css when you’re done!

See this content in the original post

Here are the steps from this tutorial:

  1. 1. Visit fonts.google.com to select a font you want to use.

  2. Select your bag/cart icon to see the font family you have selected

  3. On the Web options, choose the @import toggle

  4. Copy the code for this font

  5. Open the Squarespace editor

  6. Navigate to Website → Website Tools → Custom CSS

  7. Paste the code here

  8. Remove the style brackets, including the carrots, so your code will start with @import

  9. Remove the 2 in the url for CSS2

    Please note - most of the fonts in the Google font database will work, but some of the latest have not been updated and will not work with this method. if your font doesn’t load using only CSS, you’ll need to install the font following these instructions: developers.google.com/fonts/docs/css2

  10. Copy the font family name from Google

  11. Using the selector or block id & asterisk, assign the font to a specific item in Squarespace by using it’s font name

  12. Use additional text & font properties to change the style of the font you’ve uploaded to your Squarespace site

  13. Save your custom css when you’re done!

See this content in the original post

Changing a list item title font

@import url('https://fonts.googleapis.com/css?family=Shadows+Into+Light&display=swap');

.list-item-content__title {font-family: 'Shadows Into Light', cursive;}

Changing the H1 font in a text block

@import url('https://fonts.googleapis.com/css?family=Shadows+Into+Light&display=swap');

#block-1234 h1{font-family: 'Shadows Into Light', cursive;}

See this content in the original post

⚙️ Chrome extension for the block id (not affiliated, just a fan!)

🔗 How to install CSS in one page on your Squarespace site

⭐ Free Training: Squarespace CSS Basics

🔡 Free Guide: Font & Text Properties

📄 Squarespace CSS Selectors