claudiafrat Posted October 3, 2022 Posted October 3, 2022 (edited) Site URL: https://bozoo.it/ Hello, I m having trouble with my website. I uploaded a custom font in CSS but it is not showing the right one in Safari/Android and Chrome from Android mobile HERE THE CODE USED AT THE MOMENT /* custom font*/ @font-face { font-family: NeueHaasUnicaW1G-Regular; src: url(https://static1.squarespace.com/static/62d133022b745d11a9223070/t/6339b37b08415113fc075b75/1664725884064/NeueHaasUnicaW1G-Regular.otf@font-face {); } // Newsletter Form Title // .newsletter-form-header-title { font-family: NeueHaasUnicaW1G-Bold !important; } // Newsletter Form Description // .newsletter-form-header-description p { font-family: NeueHaasUnicaW1G-Regular !important; } // Newsletter Form Fields // .newsletter-form-field-element { font-family: NeueHaasUnicaW1G-Regular !important; } // Newsletter Form Button // .newsletter-form-button { font-family: NeueHaasUnicaW1G-Regular !important; } // Newsletter Form Footnote // .newsletter-form-footnote { font-family: NeueHaasUnicaW1G-Regular !important; } // Site Title // .header-title-text a { font-family: NeueHaasUnicaW1G-Regular !important; } // Site Navigation // .header-nav-item a { font-family:NeueHaasUnicaW1G-Regular !important; } @font-face { font-family: NeueHaasUnicaW1G-Bold; src: url(https://static1.squarespace.com/static/62d133022b745d11a9223070/t/6339aee0e0b2951ae90bd2ff/1664724704997/NeueHaasUnicaW1G-Bold.otf@font-face {); } h1 { font-family: 'NeueHaasUnicaW1G-Bold'; } h2 { font-family: 'NeueHaasUnicaW1G-Bold'; } h3 { font-family: 'NeueHaasUnicaW1G-Bold'; } p { font-family: 'NeueHaasUnicaW1G-Regular'; } // Small or Tertiary Button // .sqs-block-button-element--small, .sqs-button-element--tertiary { font-family: NeueHaasUnicaW1G-Regular !important; } // Medium or Primary Button // .sqs-block-button-element--medium, .sqs-button-element--primary { font-family: NeueHaasUnicaW1G-Regular !important; } // Large or Secondary Button // .sqs-block-button-element--large, .sqs-button-element--secondary { font-family: NeueHaasUnicaW1G-Regular !important; } Thank you in advance Edited October 3, 2022 by claudiafrat
claudiafrat Posted October 4, 2022 Author Posted October 4, 2022 I've noticed that the custom font is not visible also in Chrome on Windows
KwameAndCo Posted October 4, 2022 Posted October 4, 2022 Check your @font-face declarations: @font-face { font-family: NeueHaasUnicaW1G-Regular; src: url(https://static1.squarespace.com/static/62d133022b745d11a9223070/t/6339b37b08415113fc075b75/1664725884064/NeueHaasUnicaW1G-Regular.otf@font-face {); } you have @font-face { inside the brackets at the end of the font file's URL for both of them which is likely what's causing the issue. Remove the two instances and you should be good. Otherwise we'll keep investigating. claudiafrat 1 Work With Me 🖥️💻📱 Please remember to tag me so that I get a notification and respond to your help requests. If my answers have helped you, please drop a like and mark my answer as best to help other users find solutions quickly. You can also thank me or make requests by buying me a coffee ☕. (Caffeine fuels me to take more requests) For Squarespace Tips & Tricks, visit @squareskills (Youtube 📺 Tutorials) For Premium and FREE plugins, visit Squareskills (Plugin Store) 🧩 For Custom Plugins email me 🧩
claudiafrat Posted October 4, 2022 Author Posted October 4, 2022 @KwameAndCo You mean like this? @font-face { font-family: NeueHaasUnicaW1G-Regular; src:url(https://static1.squarespace.com/static/62d133022b745d11a9223070/t/6339b37b08415113fc075b75/1664725884064/NeueHaasUnicaW1G-Regular.otf@font-face); } I've tried and it's still not visible.
KwameAndCo Posted October 4, 2022 Posted October 4, 2022 Remove this underlined bit. @font-face {font-family: NeueHaasUnicaW1G-Regular;src:url(https://static1.squarespace.com/static/62d133022b745d11a9223070/t/6339b37b08415113fc075b75/1664725884064/NeueHaasUnicaW1G-Regular.otf@font-face);} claudiafrat 1 Work With Me 🖥️💻📱 Please remember to tag me so that I get a notification and respond to your help requests. If my answers have helped you, please drop a like and mark my answer as best to help other users find solutions quickly. You can also thank me or make requests by buying me a coffee ☕. (Caffeine fuels me to take more requests) For Squarespace Tips & Tricks, visit @squareskills (Youtube 📺 Tutorials) For Premium and FREE plugins, visit Squareskills (Plugin Store) 🧩 For Custom Plugins email me 🧩
claudiafrat Posted October 4, 2022 Author Posted October 4, 2022 @KwameAndCoThank you! It works pretty good!
Dieneke Posted August 27, 2023 Posted August 27, 2023 Hi all,I have this the other way around.. My uploaded fonts work in safari but in chrome they suddenly are changed in not the font I have upload. In the picture below a picture. @KwameAndCo, canyou help me out? @font-face { font-family: 'Sombra'; src: url('https://static1.squarespace.com/static/649afdb7826c3b5cbe03e79c/t/649b017e011148431501e6d1/1687880062743/Sombra-Medium.otf'); } h1 {font-family: 'Sombra';} @font-face { font-family: 'Sombra2'; src: url('https://static1.squarespace.com/static/649afdb7826c3b5cbe03e79c/t/649b017180cc59430f77815a/1687880049395/Sombra-Bold.otf'); } h2 {font-family: 'Sombra2';} @font-face { font-family: 'Fontwolf2'; src: url('https://static1.squarespace.com/static/649afdb7826c3b5cbe03e79c/t/64bd4e0542738e3257eb8586/1690127877277/font.woff2'); } @font-face { font-family: 'ScalaSansProBold'; src: url('https://static1.squarespace.com/static/649afdb7826c3b5cbe03e79c/t/64bd4e0542738e3257eb8586/1690127877277/font.woff2'); } H3,H4,p {font-family: 'ScalaSansProBold';}
KwameAndCo Posted August 28, 2023 Posted August 28, 2023 @Dieneke try adding !important to the font-family declarations. Otherwise send me a screenshot or link to the site. Work With Me 🖥️💻📱 Please remember to tag me so that I get a notification and respond to your help requests. If my answers have helped you, please drop a like and mark my answer as best to help other users find solutions quickly. You can also thank me or make requests by buying me a coffee ☕. (Caffeine fuels me to take more requests) For Squarespace Tips & Tricks, visit @squareskills (Youtube 📺 Tutorials) For Premium and FREE plugins, visit Squareskills (Plugin Store) 🧩 For Custom Plugins email me 🧩
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment