AX21 Posted December 1, 2021 Share Posted December 1, 2021 Hello everyone, My brand uses a specific font family, called "Gotham" on all of our marketing materials. Unfortunately, this font is not pre-loaded in the Squarespace editor, thus I've uploaded it and used CSS to assign it specific display roles on my site - such as "heading 1, heading 2, etc" When I'm editing my site in Squarespace, it appears without issue. No error notifications in the CSS editor, either. However, when signed out and viewing live, the font doesn't display at all - and is substituted by a default serif font. I've attached annotated screenshots, and I'll attempt to paste the code below. Can someone please examine, and identify what's incorrect, or potentially missing from the Custom Font CSS sections? I'll note again, that there are no error notifications displaying in the CSS Editor. View all our custom code below: .Header-nav--primary .Header-nav-item { font-family: 'Gotham' !important; } .Mobile-overlay-nav--primary .Mobile-overlay-nav-item, .Mobile-overlay-folder-item { font-family: 'Gotham' ; } @font-face { font-family: 'Gotham' ; src: url('Gotham' ); } h1 {font-family: 'Gotham' ;} h2 {font-family: 'Gotham-Light';} h3 {font-family: 'Gotham' ;} .quote-block * { color: gray; font-family: 'Gotham-Light' !important; } .sqs-block-button-element { font-family: 'Gotham' !important; } input.button.sqs-system-button.sqs-editable-button { padding-top: 17px; padding-bottom: 17px; padding-left: 28px; padding-right: 28px; font-family: 'Gotham'; font-size: 10px !important; } Link to comment
Solution paul2009 Posted December 1, 2021 Solution Share Posted December 1, 2021 20 minutes ago, AX21 said: Can someone please examine, and identify what's incorrect, or potentially missing from the Custom Font CSS sections? You haven't included the URL of the font file in your CSS. The line below only includes the name of the font. The actual filename and the path are missing. src: url('Gotham' ); See this guide for more details. About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥. Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links. Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional. Link to comment
AX21 Posted December 1, 2021 Author Share Posted December 1, 2021 Paul, Sir, You are a genius. Problem solved. I really don't know how I missed this. paul2009 1 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