JGK Posted July 7, 2022 Share Posted July 7, 2022 Site URL: https://zoefeldmandesign.com/ Quote @font-face { font-family: ‘Nord’; src: url('https://static1.squarespace.com/static/5927274186e6c0e239f6d759/t/62c5f608a45ca6185537907d/1657140744904/Nord-Book.ttf'); } .Header-nav--primary .Header-nav-item { font-family: 'Nord' !important; } Custom font above is not working to change the font for the navigation. The font is changing to something, just not Nord. I've double checked by changing other fonts on the website, and the font file is correct. Code is currently commented out on the live website. Link to comment
tuanphan Posted July 8, 2022 Share Posted July 8, 2022 The font looks fine to me. Can you take a screenshot on your end? 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
JGK Posted July 11, 2022 Author Share Posted July 11, 2022 @tuanphan thanks, please see attached! Nord is a sans-serif font, the nav is showing an incorrect font. I've double checked that the ttf file I uploaded is correct! Link to comment
tuanphan Posted July 11, 2022 Share Posted July 11, 2022 Try this code .Header-nav-inner * { font-family: Nord !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!) Link to comment
JGK Posted July 11, 2022 Author Share Posted July 11, 2022 @tuanphan updated but it's still happening! You can see in the image that the tff file looks correct too. Link to comment
JGK Posted July 11, 2022 Author Share Posted July 11, 2022 It looks like the issue isn't with the nav selector, its with the font (if I try to change another font to Nord, it does the same thing). The ttf file looks correct though. I've deleted and re-uploaded it. Could it be something with squarespace changing to a different default font or something? Link to comment
tuanphan Posted July 12, 2022 Share Posted July 12, 2022 Do you have any other file formats? eg: woff, woff2,...? 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
JGK Posted July 12, 2022 Author Share Posted July 12, 2022 @tuanphan thanks for your help! I do have those files - I tried updating that and it's still doing the same thing. Link to comment
tuanphan Posted July 12, 2022 Share Posted July 12, 2022 You can declare both format @font-face { font-family: Nord; src: url(enter file1 url); src: url(enter file2 url); } 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment