AX21 Posted December 1, 2021 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; }
paul2009 Posted December 1, 2021 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. Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.
AX21 Posted December 1, 2021 Author Posted December 1, 2021 Paul, Sir, You are a genius. Problem solved. I really don't know how I missed this.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.