Jump to content

How to add a custom fonts to my website

Recommended Posts

Posted

Hello everyone, 

I'm wondering how to add a few different custom fonts to my website. What is the code to add multiple different types of fonts so that I'm able to choose between the bold, normal, oblique versions of the fonts to use all throughout the site in the navigation, body text, page title, page description,  headings, footer text, and body copy? I tried using some code I found in another forum discussion but it's only changed the navigation, headings, and part of the footer to the oblique version across the site and has not updated the body fonts. https://frog-hawk-hy4y.squarespace.com/. Here is the code I currently have, which somehow has only updated the fonts to the oblique version despite uploading all of the different versions in the CSS editor:

@font-face {
font-family: 'AUDREYBOLD';
src: url(https://static1.squarespace.com/static/633cadb7d64f354c6d1a3d53/t/635ed76d85f1914d45f160c4/1667159917103/Audrey-Bold.otf);
}
h1 {font-family: 'AUDREYBOLD' !important;}
h2 {font-family: 'AUDREYBOLD' !important;}
h3 {font-family: 'AUDREYBOLD' !important;}
h4 {font-family: 'AUDREYBOLD' !important;}
a {font-family: 'AUDREYBOLD' !important;}
@font-face {
font-family: 'AUDREYBOLDOBLIQUE';
src: url(https://static1.squarespace.com/static/633cadb7d64f354c6d1a3d53/t/635ed7756939111971eb0180/1667159925238/Audrey-BoldOblique.otf);
}
h1 {font-family: 'AUDREYBOLDOBLIQUE' !important;}
h2 {font-family: 'AUDREYBOLDOBLIQUE' !important;}
h3 {font-family: 'AUDREYBOLDOBLIQUE' !important;}
h4 {font-family: 'AUDREYBOLDOBLIQUE' !important;}
a {font-family: 'AUDREYBOLDOBLIQUE' !important;}
@font-face {
font-family: 'AUDREYMEDIUM';
src: 
url(https://static1.squarespace.com/static/633cadb7d64f354c6d1a3d53/t/635ed77a7d58c0223f21ca4f/1667159931028/Audrey-Medium.otf)
}
h1 {font-family: 'AUDREYMEDIUM' !important;}
h2 {font-family: 'AUDREYMEDIUM' !important;}
h3 {font-family: 'AUDREYMEDIUM' !important;}
h4 {font-family: 'AUDREYMEDIUM' !important;}
a {font-family: 'AUDREYMEDIUM' !important;}
@font-face {
font-family: 'AUDREYMEDIUMOBLIQUE';
src:
url(https://static1.squarespace.com/static/633cadb7d64f354c6d1a3d53/t/635ed783af27cb471ad440d4/1667159939151/Audrey-MediumOblique.otf)
}
h1 {font-family: 'AUDREYMEDIUMOBLIQUE' !important;}
h2 {font-family: 'AUDREYMEDIUMOBLIQUE' !important;}
h3 {font-family: 'AUDREYMEDIUMOBLIQUE' !important;}
h4 {font-family: 'AUDREYMEDIUMOBLIQUE' !important;}
a {font-family: 'AUDREYMEDIUMOBLIQUE' !important;}
@font-face {
font-family: 'AUDREYNORMAL';
src:
url(https://static1.squarespace.com/static/633cadb7d64f354c6d1a3d53/t/635ed78c85f1914d45f1671a/1667159948147/Audrey-Normal.otf)
}
h1 {font-family: 'AUDREYNORMAL' !important;}
h2 {font-family: 'AUDREYNORMAL' !important;}
h3 {font-family: 'AUDREYNORMAL' !important;}
h4 {font-family: 'AUDREYNORMAL' !important;}
a {font-family: 'AUDREYNORMAL' !important;}
@font-face {
font-family: 'AUDREYNORMALOBLIQUE';
src:
url(https://static1.squarespace.com/static/633cadb7d64f354c6d1a3d53/t/635ed7914fd8302e389ff3ff/1667159953601/Audrey-NormalOblique.otf)
}
h1 {font-family: 'AUDREYNORMALOBLIQUE' !important;}
h2 {font-family: 'AUDREYNORMALOBLIQUE' !important;}
h3 {font-family: 'AUDREYNORMALOBLIQUE' !important;}
h4 {font-family: 'AUDREYNORMALOBLIQUE' !important;}
a {font-family: 'AUDREYNORMALOBLIQUE' !important;}

 

Any help would be much appreciated. Screenshot attached shows the header font updated and the body copy that's not. 

Thank you!!

 

Screen Shot 2022-10-30 at 4.48.22 PM.png

  • Replies 1
  • Views 774
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted
12 hours ago, Ericabell said:

Hello everyone, 

I'm wondering how to add a few different custom fonts to my website. What is the code to add multiple different types of fonts so that I'm able to choose between the bold, normal, oblique versions of the fonts to use all throughout the site in the navigation, body text, page title, page description,  headings, footer text, and body copy? I tried using some code I found in another forum discussion but it's only changed the navigation, headings, and part of the footer to the oblique version across the site and has not updated the body fonts. https://frog-hawk-hy4y.squarespace.com/. Here is the code I currently have, which somehow has only updated the fonts to the oblique version despite uploading all of the different versions in the CSS editor:

@font-face {
font-family: 'AUDREYBOLD';
src: url(https://static1.squarespace.com/static/633cadb7d64f354c6d1a3d53/t/635ed76d85f1914d45f160c4/1667159917103/Audrey-Bold.otf);
}
h1 {font-family: 'AUDREYBOLD' !important;}
h2 {font-family: 'AUDREYBOLD' !important;}
h3 {font-family: 'AUDREYBOLD' !important;}
h4 {font-family: 'AUDREYBOLD' !important;}
a {font-family: 'AUDREYBOLD' !important;}
@font-face {
font-family: 'AUDREYBOLDOBLIQUE';
src: url(https://static1.squarespace.com/static/633cadb7d64f354c6d1a3d53/t/635ed7756939111971eb0180/1667159925238/Audrey-BoldOblique.otf);
}
h1 {font-family: 'AUDREYBOLDOBLIQUE' !important;}
h2 {font-family: 'AUDREYBOLDOBLIQUE' !important;}
h3 {font-family: 'AUDREYBOLDOBLIQUE' !important;}
h4 {font-family: 'AUDREYBOLDOBLIQUE' !important;}
a {font-family: 'AUDREYBOLDOBLIQUE' !important;}
@font-face {
font-family: 'AUDREYMEDIUM';
src: 
url(https://static1.squarespace.com/static/633cadb7d64f354c6d1a3d53/t/635ed77a7d58c0223f21ca4f/1667159931028/Audrey-Medium.otf)
}
h1 {font-family: 'AUDREYMEDIUM' !important;}
h2 {font-family: 'AUDREYMEDIUM' !important;}
h3 {font-family: 'AUDREYMEDIUM' !important;}
h4 {font-family: 'AUDREYMEDIUM' !important;}
a {font-family: 'AUDREYMEDIUM' !important;}
@font-face {
font-family: 'AUDREYMEDIUMOBLIQUE';
src:
url(https://static1.squarespace.com/static/633cadb7d64f354c6d1a3d53/t/635ed783af27cb471ad440d4/1667159939151/Audrey-MediumOblique.otf)
}
h1 {font-family: 'AUDREYMEDIUMOBLIQUE' !important;}
h2 {font-family: 'AUDREYMEDIUMOBLIQUE' !important;}
h3 {font-family: 'AUDREYMEDIUMOBLIQUE' !important;}
h4 {font-family: 'AUDREYMEDIUMOBLIQUE' !important;}
a {font-family: 'AUDREYMEDIUMOBLIQUE' !important;}
@font-face {
font-family: 'AUDREYNORMAL';
src:
url(https://static1.squarespace.com/static/633cadb7d64f354c6d1a3d53/t/635ed78c85f1914d45f1671a/1667159948147/Audrey-Normal.otf)
}
h1 {font-family: 'AUDREYNORMAL' !important;}
h2 {font-family: 'AUDREYNORMAL' !important;}
h3 {font-family: 'AUDREYNORMAL' !important;}
h4 {font-family: 'AUDREYNORMAL' !important;}
a {font-family: 'AUDREYNORMAL' !important;}
@font-face {
font-family: 'AUDREYNORMALOBLIQUE';
src:
url(https://static1.squarespace.com/static/633cadb7d64f354c6d1a3d53/t/635ed7914fd8302e389ff3ff/1667159953601/Audrey-NormalOblique.otf)
}
h1 {font-family: 'AUDREYNORMALOBLIQUE' !important;}
h2 {font-family: 'AUDREYNORMALOBLIQUE' !important;}
h3 {font-family: 'AUDREYNORMALOBLIQUE' !important;}
h4 {font-family: 'AUDREYNORMALOBLIQUE' !important;}
a {font-family: 'AUDREYNORMALOBLIQUE' !important;}

 

Any help would be much appreciated. Screenshot attached shows the header font updated and the body copy that's not. 

Thank you!!

 

Screen Shot 2022-10-30 at 4.48.22 PM.png

Your site is private now. Kindly set it with a protected password so we can take a look

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> No-code customisations for Squarespace

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.