Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
fbogus

Custom font code written but font not changing

Question

Posted (edited)

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




Edited by Paul2009

Share this post


Link to post

17 answers to this question

Recommended Posts

  • 0
Posted (edited)

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


Edited by tuanphan
Initial Revision

Share this post


Link to post
  • 0

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


Share this post


Link to post
  • 0

@tuanphan The only change I saw is adding the code !important

I made that change and it had no effect that I could see.

Share this post


Link to post
  • 0

@tuanphan The only change I saw is adding the code !important

I made that change and it had no effect that I could see.

Share this post


Link to post
  • 0

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.


If a response has helped you, please give thanks using the  like-20-mag.png.3997345d620e40b4760b5d7a667cad54.png button.
Need personalised help? I'm a professional Developer who works with Designers internationally. You can book me via my company's website. www.sf.digital

Share this post


Link to post
  • 0

Thank you! That made all the difference.
I am not detail-oriented enough to be doing this regularly.

Share this post


Link to post

Create an account or sign in to comment

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


×
×
  • Create New...