Jump to content

Custom fonts working on paragraphs but not on headings

Go to solution Solved by tuanphan,

Recommended Posts

Hi! 

My custom font (PPEditorialNew-Regular) is getting applied on Paragraphs but not on Headings.

If you visit my website (othi.la), notice how the "Founded in Latin America. Based in New York" text is using my custom font properly (Paragraph 1), but the headings are using a different generic font from Squarespace. 

This is my code:

@font-face {
  font-family: 'PPEditorialNew-Regular';
  src: url(https://static1.squarespace.com/static/641efc971ef2cd00b7a4c5dc/t/64c3f7e0a62f085b13251caf/1690564576766/PPEditorialNew-Regular.ttf);
}

h1, h2, h3, h4, h5 {
  font-family:'PPEditorialNew-Regular';
}
p {
  font-family: 'PPEditorialNew-Regular';
}

 Everything was working normally just a few days ago. I visited the website today and saw it was broken. 

Link to comment
  • Solution
7 hours ago, MosheTigre said:

Hi! 

My custom font (PPEditorialNew-Regular) is getting applied on Paragraphs but not on Headings.

If you visit my website (othi.la), notice how the "Founded in Latin America. Based in New York" text is using my custom font properly (Paragraph 1), but the headings are using a different generic font from Squarespace. 

This is my code:

@font-face {
  font-family: 'PPEditorialNew-Regular';
  src: url(https://static1.squarespace.com/static/641efc971ef2cd00b7a4c5dc/t/64c3f7e0a62f085b13251caf/1690564576766/PPEditorialNew-Regular.ttf);
}

h1, h2, h3, h4, h5 {
  font-family:'PPEditorialNew-Regular';
}
p {
  font-family: 'PPEditorialNew-Regular';
}

 Everything was working normally just a few days ago. I visited the website today and saw it was broken. 

Try changing to this

@font-face {
  font-family: 'PPEditorialNew-Regular';
  src: url(https://static1.squarespace.com/static/641efc971ef2cd00b7a4c5dc/t/64c3f7e0a62f085b13251caf/1690564576766/PPEditorialNew-Regular.ttf);
}

h1, h2, h3, h4, h5 {
  font-family:'PPEditorialNew-Regular' !important;
}
p {
  font-family: 'PPEditorialNew-Regular' !important;
}

 

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.