Jump to content

Custom font not working on mobile

Recommended Posts

Hello!

I've customised headings' font with a css. While the custom font works perfectly on the desktop version, it doesn't display correctly on mobile devices.

This is the website:

https://carillon-cylinder-2nhh.squarespace.com/

Psw: Password1

 

This is the script:

@font-face {
    font-family:'DM Serif Display';
    src: url(https://fonts.googleapis.com/css2?family=DM+Serif+Display&display=swap.ttf);

h1 {
    font-family: 'DM Serif Display';
}

h2 {
    font-family: 'DM Serif Display';
}

h3 {
    font-family: 'DM Serif Display';
}

h4 {
    font-family: 'DM Serif Display';
}

 

Thanks for any help!

Link to comment
  • Replies 3
  • Views 359
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Posted (edited)
6 minutes ago, FFederica said:

This isn't a font file, you need to reference a font file by uploading it and adding the upload location URL.

Edited by Ziggy

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!

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

 Did I help? Buy me a coffee?

Link to comment
10 minutes ago, FFederica said:

OK, thanks @Ziggy! I figured out how to do it, and now the script works

Nice one!

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!

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

 Did I help? Buy me a coffee?

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.