Jump to content

URGENT — Custom Fonts working inside SS editor, but not on live site!

Go to solution Solved by tuanphan,

Recommended Posts

Needing some urgent help on a site I am working on. We are trying to publish a new website for our non-profit. The custom fonts are displaying beautifully (after many many tweaks to get it right), but now are not displaying on any browsers on the "live" site. I thought I would be publishing this site before noon today, which I now can't do and people are depending on me to get this up and running ASAP. Can anyone help me determine why this might be happening? I have attached screenshots of what it looks like inside the editor, and what it looks like on the public-facing site.

Here is the site link, and the password is "diffa".

Screenshot 2024-08-30 at 12.02.30 PM.png

Screenshot 2024-08-30 at 12.04.48 PM.png

Link to comment
  • Replies 2
  • Views 204
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • Solution
Posted (edited)

Your font-face code, have an invalid ' and ' symbol + font family name in @font-face not match with font-family in h1, h2, h3, h4, p

image.thumb.png.94dc3eb1a6e4a16884f9e1ebd6aed492.png

It should be

@font-face {
    font-family: 'GothamBook';
    src: url('https://static1.squarespace.com/static/66b51ab7e90eb2053f715add/t/66b6fd91d38adb63461a8bc7/1723268497851/Gotham-Book.woff');
}

@font-face {
    font-family: 'GothamMedium';
    src: url('https://static1.squarespace.com/static/66b51ab7e90eb2053f715add/t/66b6fd912af11a73a9cddd1a/1723268497821/Gotham-Medium.woff');
}

@font-face {
    font-family: 'GothamBold';
    src: url('https://static1.squarespace.com/static/66b51ab7e90eb2053f715add/t/66b6fd9102071147122be447/1723268497820/Gotham-Bold.woff')'
}

h1, h3 {
    font-family: 'GothamBold' !important;
}

h2, h4 {
    font-family: 'GothamMedium' !important;
}

p {
    font-family: 'GothamBook' !important;
}

 

Edited by tuanphan

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
On 8/30/2024 at 4:50 PM, tuanphan said:

Your font-face code, have an invalid ' and ' symbol + font family name in @font-face not match with font-family in h1, h2, h3, h4, p

image.thumb.png.94dc3eb1a6e4a16884f9e1ebd6aed492.png

It should be

@font-face {
    font-family: 'GothamBook';
    src: url('https://static1.squarespace.com/static/66b51ab7e90eb2053f715add/t/66b6fd91d38adb63461a8bc7/1723268497851/Gotham-Book.woff');
}

@font-face {
    font-family: 'GothamMedium';
    src: url('https://static1.squarespace.com/static/66b51ab7e90eb2053f715add/t/66b6fd912af11a73a9cddd1a/1723268497821/Gotham-Medium.woff');
}

@font-face {
    font-family: 'GothamBold';
    src: url('https://static1.squarespace.com/static/66b51ab7e90eb2053f715add/t/66b6fd9102071147122be447/1723268497820/Gotham-Bold.woff')'
}

h1, h3 {
    font-family: 'GothamBold' !important;
}

h2, h4 {
    font-family: 'GothamMedium' !important;
}

p {
    font-family: 'GothamBook' !important;
}

 

@tuanphan thank you so much, this fixed it for the most part. Still a few wonky parts where it won't display and I emailed those to you. You're the best!

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.