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

Custom font code written but font not changing


fbogus
Go to solution Solved by tuanphan,

Question

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
Link to post
  • Answers 17
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

17 answers to this question

Recommended Posts

  • 0

@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

You can send your question to my email to get detail answer. / How to Setup Password & Share URL

--- Happy New Year

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


You can send your question to my email to get detail answer. / How to Setup Password & Share URL

--- Happy New Year

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.

sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi, I'm Paul, founder of SF Digital, a specialist company helping Squarespace users by building the features that Squarespace didn't include.
Explore our range of Squarespace Extensions, including the Wishlist, and Datepicker Extension or book a Squarespace Expert for 1:1 help. Note that links in my posts may be affiliate links.

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