Jump to content

Custom Font not displaying on Mobile

Go to solution Solved by tuanphan,

Recommended Posts

  • Replies 4
  • Views 382
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution
Posted

Because your code is invalid. You haven't added real font url into the @font-face code 

Replace FontURL with real font file url. Even if the code is wrong, you still see it working because your computer already has that font installed.

image.png.9f686d92176677a851ad5e60f7a1280e.png

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!)

  • 2 weeks later...
Posted

Hey, this is the code i ended up using:

 

p1 
{font-family: 'FONT NAME';}
p2 
{font-family: 'FONT NAME';}
p3 
{font-family: 'FONT NAME';}
h1 
{font-family: 'FONT NAME';}
h2  
{font-family: 'FONT NAME';}
h3 
{font-family: 'FONT NAME';}
h4 
{font-family: 'FONT NAME';}

 

@font-face 
{font-family: 'FONT NAME';
src: url (url);
}

@font-face 
{font-family: 'FONT NAME';
src: url(url);}

 

Also, love your bar - frequented a few times. 

 

Posted

You can combine your code to make it shorter, eg, h1, h2, h3, h4 {font-family: 'FONT NAME';}

Also, p1, p2, p3 tag doesn't exist. To target all there p, you can use p {font-family: 'FONT NAME' !important;}

 

If you wan to target each p, each p will have this id

p1 = p.sqsrte-large

p2 = p:not(.sqsrte-large):not(.sqsrte-small)

p3 = p.sqsrte-small

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.