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: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. 
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!
If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.
Improve your online store with our extensions.

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.