Jump to content

Syntax error

Recommended Posts

I keep getting a syntax error on line 2, as I'm trying to upload a custom font. I've done this before without a hitch. Been staring at this, and retyping, for over an hour now. What am I missing? Hive mind, please help 🙂

 

@font-face {
   font-family: ‘Neutra-Display-Drafting32092’;
  src:

Link to comment
  • Replies 1
  • Views 508
  • Created
  • Last Reply

First you upload the actual font file in Custom Css, link/button located at  the bottom of the CSS window

then add the name where it says name of the font and the url of the actual file in Custom file in the font url  ()  in this bit of code. The Url of the font will show at the top of the CSS window when you click on the file name, copy and past no need to save the changes in the window. 

@font-face {    
font-family: 'NAME';       
src: url('FONT URL');  }

Here is screen shot of a working bit of custom font css code. Note space between family: and 'MANHATTAN' 

 

...then give the font a name and add in the URL.

Link to comment

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.