Jump to content

Custom Font (NOT DISPLAYING)

Go to solution Solved by paul2009,

Recommended Posts

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;
}

 

A.jpg

B.jpg

Link to comment
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

  • Solution
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.