Jump to content

Custom font code written but font not changing

Recommended Posts

I'm very new to this. I'm using Brine and am trying to add a custom font for h1. The font name is appearing in the list of available fonts but the h1 text is not changing. I manually changed the h1 font in Style but it changed nothing. Any thoughts on where I made a mistake?

The following is the code I entered:


font-family: 'gooddog';
 src: url(https://static1.squarespace.com/static/5d279557b233000001390e62/t/5d2df62bcf8a3400014e88f9/1563293227668/gooddp__-webfont.woff)
   url(https://static1.squarespace.com/static/5d279557b233000001390e62/t/5d2df688c27c1c00012438c8/1563293320236/gooddp__-webfont.woff2)
   url(https://static1.squarespace.com/static/5d279557b233000001390e62/t/5d2df6ad0a52970001c7cd98/1563293357257/GOODDP__.TTF)
}
h1{
 font-family: 'gooddog', 'gibson',sans-serif;
}




Link to comment
  • Replies 17
  • Created
  • Last Reply

@fbogus


@font-face {
font-family: 'gooddog'; 
src: url(https://static1.squarespace.com/static/5d279557b233000001390e62/t/5d2df62bcf8a3400014e88f9/1563293227668/gooddp__-webfont.woff); 
src: url(https://static1.squarespace.com/static/5d279557b233000001390e62/t/5d2df688c27c1c00012438c8/1563293320236/gooddp__-webfont.woff2), url(https://static1.squarespace.com/static/5d279557b233000001390e62/t/5d2df6ad0a52970001c7cd98/1563293357257/GOODDP__.TTF); 
} 

h1{ font-family: 'gooddog', 'gibson',sans-serif !important; }


Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Please provide a working link to the website.

It's almost impossible to troubleshoot code unless the community have a working link to your website. Without this we cannot see the code being used or any errors that are being generated.

If your site is still in trial mode you will need to set a site password and tell us what it is.

About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. 
Content: Links in my posts may refer to SF Digital products or may be affiliate links.
If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too.

Link to comment

@fbogus There should be commas between urls

Your code is


@font-face {
       font-family: 'gooddog';
       src: url(https://static1.squarespace.com/static/5d279557b233000001390e62/t/5d2df62bcf8a3400014e88f9/1563293227668/gooddp__-webfont.woff) url(https://static1.squarespace.com/static/5d279557b233000001390e62/t/5d2df688c27c1c00012438c8/1563293320236/gooddp__-webfont.woff2) url(https://static1.squarespace.com/static/5d279557b233000001390e62/t/5d2df6ad0a52970001c7cd98/1563293357257/GOODDP__.TTF)
   }

It should be


@font-face {
   font-family: 'gooddog';
   src: 
   url(https://static1.squarespace.com/static/5d279557b233000001390e62/t/5d2df62bcf8a3400014e88f9/1563293227668/gooddp__-webfont.woff), url(https://static1.squarespace.com/static/5d279557b233000001390e62/t/5d2df688c27c1c00012438c8/1563293320236/gooddp__-webfont.woff2), url(https://static1.squarespace.com/static/5d279557b233000001390e62/t/5d2df6ad0a52970001c7cd98/1563293357257/GOODDP__.TTF);
}


Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.