Jump to content

Custom font rendering as times new roman

Go to solution Solved by Ziggy,

Recommended Posts

Hi! 

I'm trying to use a custom font file and I can tell the code is working because it is rendering a change in the header, but it is appearing as times new roman - not the bubble font I'm trying to us. 

Here is the code:

@font-face {
  font-family: ‘BUBBLEGUMS;
       src: url('https://static1.squarespace.com/static/64a31a14f988b2491913aad7/t/6503b0a7bf076443d7b101b9/1694740647741/BUBBLEGUMS.TTF');
  }

h1 {font-family: ‘BUBBLEGUMS’ !important;}

 

(I also tried it without !important too)

any ideas why it's not working??

thanks so much in advance!

Screen Shot 2023-09-14 at 9.19.35 PM.png

Link to comment
  • Replies 5
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

It looks like you're missing a closing single quote mark at the end of the font name here:

image.png.82cb694a72e5da567548ecaeec434d4e.png

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
  • Solution

Try replacing it with this:

@font-face {
  font-family: 'BUBBLEGUMS';
  src: url('https://static1.squarespace.com/static/64a31a14f988b2491913aad7/t/6503b0a7bf076443d7b101b9/1694740647741/BUBBLEGUMS.TTF');
  }

h1 {
  font-family: 'BUBBLEGUMS' !important;
}

The single quote marks you were using weren't correct quote marks for some reason.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
5 hours ago, getmonay said:

Thank you soooooo much!!!!!

Glad I could help!

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

Create an account or sign in to comment

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

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