Jump to content

Custom Font Not Working on Safari

Go to solution Solved by tuanphan,

Recommended Posts

Site URL: https://rust-soybean-ynmj.squarespace.com/

Hello Friends!

I have a quick question.

To this site [ https://rust-soybean-ynmj.squarespace.com/ (Password: bob) ], I added a custom font and it worked flawlessly on Chrome, but it doesn't show on Safari for some reason. Would anyone have an idea why that happens?

Thank you in advance!

Ozan

(P.S.: The font I installed is the demo version, and I just wanted to mention that I will purchase the proper license if I can make it work on Squarespace and the client approves it.)

Screen Shot 2022-02-24 at 9.15.55 PM.png

Link to comment
  • Replies 5
  • Views 2.2k
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution

The font file url doesn't exist, you missing some character,

Quote

URL.ttf/.otf

use this new code

@font-face {
    font-family: recoleta;
    src: url(https://static1.squarespace.com/static/61e9f289ad8dff5e0d80671d/t/621868273c467a110cabb503/1645766695960/Recoleta.otf);
    src: url(https://static1.squarespace.com/static/61e9f289ad8dff5e0d80671d/t/6218680e18186052011c2e48/1645766670359/recoleta-webfont.woff),url(https://static1.squarespace.com/static/61e9f289ad8dff5e0d80671d/t/6218681490eb882e0741681e/1645766676725/recoleta-webfont.woff2);
}

h1 {
    font-family: recoleta !important;
}

 

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
9 hours ago, tuanphan said:

The font file url doesn't exist, you missing some character,

use this new code

@font-face {
    font-family: recoleta;
    src: url(https://static1.squarespace.com/static/61e9f289ad8dff5e0d80671d/t/621868273c467a110cabb503/1645766695960/Recoleta.otf);
    src: url(https://static1.squarespace.com/static/61e9f289ad8dff5e0d80671d/t/6218680e18186052011c2e48/1645766670359/recoleta-webfont.woff),url(https://static1.squarespace.com/static/61e9f289ad8dff5e0d80671d/t/6218681490eb882e0741681e/1645766676725/recoleta-webfont.woff2);
}

h1 {
    font-family: recoleta !important;
}

 

You are the best @tuanphan. Really appreciate your help. Thank you.

Link to comment
  • 1 year later...

I'm having the same problem with mine as well!

@font-face { 
font-family: 'termina-bold';
src: url(https://static1.squarespace.com/static/6283d7683a4ab53e51c33f4f/t/6293f0fbef1d8f28afbe9be7/1653862651858/Termina-Bold.otf)
}Screenshot2024-02-23at1_27_30PM.thumb.png.f94c80862eca9cf950a6872f69df873c.png

Screenshot 2024-02-23 at 1.27.24 PM.png

Link to comment
On 2/24/2024 at 3:28 AM, erb said:

I'm having the same problem with mine as well!

@font-face { 
font-family: 'termina-bold';
src: url(https://static1.squarespace.com/static/6283d7683a4ab53e51c33f4f/t/6293f0fbef1d8f28afbe9be7/1653862651858/Termina-Bold.otf)
}Screenshot2024-02-23at1_27_30PM.thumb.png.f94c80862eca9cf950a6872f69df873c.png

Screenshot 2024-02-23 at 1.27.24 PM.png

The font url in your code doesn't exist (maybe you changed site url, so the url will change), you can copy url and paste to browser address bar, you will see problem.

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

Contact Customer Care - Learn CSS - Buy me a 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.