Jump to content

Uploading multiple fonts from 2 font families

Go to solution Solved by tuanphan,

Recommended Posts

Hello!

I have a couple of questions -

Firstly - I've been given two font packs to use for a new site I am building. Both fonts have multiple files (regular, bold, italics, bold italics etc) - do I have to upload them all as separate otf files? (see attached images)

I am somewhat familiar with CSS to upload a custom font (and assign to h1, h2 etc) but never done it for multiple fonts across 2 'families' before so would really appreciate your guidance 🙂

My second question is - how tricky is it to use two fonts in H1? My client has seen this elsewhere and would like to try it but I'm not sure where to start!

Thanks in advance for your help!

H 🙂

Gambetta_complete.jpg

Switzer_complete.jpg

Link to comment
  • Solution

#1. Yes, you need to upload all and the code will be like this

@font-face {
	font-family: 'Switzer Bold';
	src: url(enter url to bold file);
}
@font-face {
	font-family: 'Switzer Regular';
	src: url(enter url to regular file);
}
@font-face {
	font-family: 'Switzer Italic';
	src: url(enter url to italic file);
}

#2. You can target BLOCK ID, some thing like this

#block-id1 h1 {
	font-family: 'Switzer Bold';
}
#block-id2 h1 {
	font-family: 'Switzer Italic';
}

Use this tool to find id: https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 2 weeks later...

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.