paytonmartin Posted August 30 Share Posted August 30 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". Link to comment
Solution tuanphan Posted August 30 Solution Share Posted August 30 (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 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 August 30 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
paytonmartin Posted September 1 Author Share Posted September 1 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 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment