Jump to content

Typefaces not working on mobile or safari site

Recommended Posts

Posted

My typefaces are not showing up on my mobile site. 

Below is the code, I'd love some help!

 

@font-face {
    font-family: 'mundial', sans-serif;
  src: url('https://static1.squarespace.com/static/62cd90e706e63f41715fba9f/t/633b0ffe7e360b02782dc2fd/1664815102204/font.ttf')  format('truetype');
  src: 
    url ('https://static1.squarespace.com/static/62cd90e706e63f41715fba9f/t/633b08f4432c494ec162dc04/1664813300976/font.woff') format ('woff');
}

  • Replies 5
  • Views 438
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Posted

What's your website? Password?

I would guess that the problem is that you have two sources for one font family, and I've seen this cause them not to load on mobile. I would delete the reference to the WOFF format, and see if that improves it on mobile.

If not then you may have to share how you are assigning the font family to your site fonts in the Custom CSS.

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

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted

Yes, I can see that. Can you share the CSS that is related to the font family?

when you're defining the @font-family, you don't want to have the fallback style in the name. So take out ,sans-serif from the CSS posted above.

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

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted

here is the CSS for the buttons that are specifically not transferring to mobile:

 

.sqs-block-button-element--small {
    font-family: 'mundial' !important;
     border: 2px solid #000000 !important;
}

.sqs-block-button-element--medium {
    font-family: 'mundial' !important;
     border: 2px solid #000000 !important;
  letter-spacing: 2px !important;
}

.sqs-block-button-element--large {
    font-family: 'mundial' !important;
     border: 2px solid #000000 !important; 
  letter-spacing: 2px !important;
}

.newsletter-form-button {font-family: 'mundial' !important;
     border: 2px solid #000000 !important; 
  letter-spacing: 2px !important;
}

.form-wrapper input[type="submit"] {
font-family: 'mundial' !important;
     border: 2px solid #000000 !important; 
  letter-spacing: 2px !important;

Posted

The code is missing some ( & ) symbols

image.thumb.png.1e031aa91b7453b944cfe6699fd6cd27.png

and this

image.thumb.png.545a9c6a2889e98cbd9dad0cb1c75819.png

Try this new font face code

@font-face {
    font-family: 'mundial';
    src: url('https://static1.squarespace.com/static/62cd90e706e63f41715fba9f/t/633b0ffe7e360b02782dc2fd/1664815102204/font.ttf') format('truetype');
    src: url ('https://static1.squarespace.com/static/62cd90e706e63f41715fba9f/t/633b08f4432c494ec162dc04/1664813300976/font.woff') format('woff');
}
.button-block * {
    font-family: 'mundial' !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!)

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.