Jump to content

Custom font not showing on devices

Recommended Posts

Hi, I have added a custom font to one of my websites - Santorini, the "My story" font. It shows fine on my end, but for any other website visitor that's not logged into Squarespace, the font is not showing, it shows a default Squarespace font. Can anyone help with this? This is the code I am using (I replaced only the h4 font):

@font-face {   
    font-family: 'Santorini';   
    src: url(https://static1.squarespace.com/static/64abdc234e9a283575b6cd1a/t/64ad3a3f6c672d12571d974b/1689074239532/Santorini.ttf); 
}

h4 {
  font-family: 'Santorini' !important;
}

 

Screenshot 2023-07-24 at 14.24.49.png

Link to comment

It looks like you're missing part of the font face code. The full code should have the format section like so:

@font-face {
  font-family: 'Santorini';
  src: url('your-url') format('woff2')
}

In your case, the format would be ttf (not woff2) to match the font file you've uploaded, however I think it's better practice to use woff files rather than ttf.

You can use an online converter like this one: https://cloudconvert.com/ttf-to-woff

If this helped you, please like or mark my solution as answer so others can scroll to it quickly 👆

Cass Aggett is a Squarespace website designer for go-getting women – no matter what stage of business.

WEBSITEINSTAGRAM

 

Link to comment

The font file in your code doesn't exist. You try upload new one & replace url.

https://static1.squarespace.com/static/64abdc234e9a283575b6cd1a/t/64ad3a3f6c672d12571d974b/1689074239532/Santorini.ttf

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.