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
  • Views 1.1k
  • 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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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 me: I'm Paul. A SQSP User for 18 yrs, I joined Circle when it launched in 2016 and have been a Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL, providing expertise and 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 free. You can thank me by clicking one of the feedback emojis below. Coffee fuels my work.

Book paid help with a Squarespace Domain

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.