Jump to content

Custom font no longer working

Recommended Posts

When my website was changed from version 7.0 to 7.1 it seemed to break the custom fonts that were previously uploaded so easily. 😞 

I am now trying the CSS route although this is my first shot at coding. The below worked for a few days, but ultimately broke. Any help/tips appreciated!

 

@font-face {

    font-family: 'FontTitle';

       src: url('https://static1.squarespace.com/static/643af7a92ed58d2bdafdb62b/t/6582fe0a8b00237d573e2731/1703083531077/Atteron.ttf');

  }

h1 {font-family: 'Atteron';}
.sqs-block-button-container a{
    font-family: 'Atteron' !important; }

Link to comment
  • Replies 3
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Hi @raccan is the above your exact CSS code from Custom CSS? If so, you just need to make 1 correction.

You have called your font-family as 'FontTitle', but tried to use it for h1 as 'Atteron'. Update your code to the below.

@font-face {

    font-family: 'Atteron';

       src: url('https://static1.squarespace.com/static/643af7a92ed58d2bdafdb62b/t/6582fe0a8b00237d573e2731/1703083531077/Atteron.ttf');

  }

That should work. Let me know how it goes.

If not, I have a step-by-step Beginner's Guide to Custom Font that explains what needs to be done, but also some common problems that people come across. Actually yours is the 1st bullet point under the Top 5 Reasons why Custom Fonts are not working section 🙂 

Edited by melody495
Updated links

-------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification 

Melody | Squarespace Nerd
e: melody@melodylee.tech


💻 💁‍♀️ 1-2-1 Squarespace Training session <- feeling stuck and want to learn?
👩‍💻 💁‍♀️ Website help <- send me your to-do list. From code to plugin to domain setup.
🧰 See the tools I use (contain affiliate links)
 Did I help? I like coffee (Thank you)

Link to comment
1 hour ago, raccan said:

That worked! thank you so much!

You are very welcome 😊 glad it's working for you.

If you could give my solution a thumbsup or mark as solution, it will help others find the answer easier. Thanks!

 

-------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification 

Melody | Squarespace Nerd
e: melody@melodylee.tech


💻 💁‍♀️ 1-2-1 Squarespace Training session <- feeling stuck and want to learn?
👩‍💻 💁‍♀️ Website help <- send me your to-do list. From code to plugin to domain setup.
🧰 See the tools I use (contain affiliate links)
 Did I help? I like coffee (Thank you)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.