Jump to content

Mobile Custom font not working

Recommended Posts

Site URL: https://www.becreative.team

Hey everyone. Pains me to ask this, but I can't work out why my custom font (Stanley) isn't working in Safari? TFF & OTF files are present. Can anyone advise? Thanks so much:

 

@font-face {
    font-family: ‘Stanley’;
    src: url('https://static1.squarespace.com/static/61f469f8788dc37c04814944/t/6315238d8f99c2593816b60f/1662329741715/Stanley.ttf');
    src: url('https://static1.squarespace.com/static/61f469f8788dc37c04814944/t/632b8fd84d3f4517a5e1c8f7/1663799256880/Stanley.otf');}

h1, h2, h3, .button-block *, .image-button a,.header-actions .btn,.header-skip-link  {
    font-family: Stanley !important;
}

Link to comment

Hi @benelliott! Both .OFT and .TTF should render on iOS devices, but why have you got two sources for one font? Does it work if you remove one of the sources from the CSS?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

  Did I help? Buy me a coffee?

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

Link to comment

Thanks Ziggy, I started afresh this morning and it's working now, thanks!:

@font-face {

font-family:Stanley;

src:url(https://static1.squarespace.com/static/61f469f8788dc37c04814944/t/632b8fd84d3f4517a5e1c8f7/1663799256880/Stanley.otf)

}
h1 {font-family:Stanley}
h2 {font-family:Stanley}
h3{font-family:Stanley}
.sqs-block-button-element {font-family:Stanley}

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.