Jump to content

Custom font not working using CSS code

Recommended Posts

Posted

Site URL: http://multiplestoriespodcast.com

Hi,

 

I am trying to add a custom font to my website. This is the code I am using:

@font-face { 
font-family: 'Cream';
src: url(https://static1.squarespace.com/static/5fc85217dac71e5b78803919/t/5fd3564d590d9171f96aad55/1607685710583/Cream+Peach.otf)
}
h1 {
font-family: 'Cream';
}
h2 {
font-family: 'Cream';
}
p {
font-family: 'Cream';
}

This just appears on my site as Times New Roman. I  have tried an OTF file and a TTF file in both Google Chrome and Microsoft Edge. Could it be the actual font type? Please help!

Edit: I have tried another computer that still does not appear to work. I can see that the CSS editor is clearly changing font but not to anything close to my actual font. Please help I am very confused.

  • Replies 1
  • Views 259
  • Created
  • Last Reply

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.