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

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

@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

COVID-19: Free priority support for all users (29/03 - 30/04). You can tag me (@tuanphan) or send to my email.

With paid support, see here

 

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



COVID-19: Free priority support for all users (29/03 - 30/04). You can tag me (@tuanphan) or send to my email.

With paid support, see here

 

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.


World-class Squarespace Developer and Squarespace Circle Leader with a strong reputation on the Squarespace Forum.
I'm trusted by hundreds of Squarespace users worldwide, including designers, freelancers, business owners and big agencies.

I can tackle anything from small tweaks to full websites and I'm available for short and long bookings (min. 1 hour).
Book via my website giving as much notice as possible. Note that I'm currently booked until the end of May 2020.
Prebuilt Squarespace Extensions for Squarespace 7.0 and 7.1: Enquiry Form ExtensionDate Picker Extension and Age Verification Extension 
Custom Squarespace Extensions: Tell me about the functionality you need

**NEW** Our popular Wishlist extension is now Squarespace 7.1 compatible.

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