Jump to content

Help with CSS For Fonts

Go to solution Solved by paul2009,

Recommended Posts

Posted

Hello! 

I am inexperienced with CSS and trying to upload custom fonts to my version 7.1 website. The headings have uploaded and are showing up most of the time. Unfortunately, the paragraph font is not working at all. 

My heading CSS is almost identical to my paragraph CSS (as show below). Please let me know what I can do to ensure it works. Thank you!

 

//ADDING DYSLEXIC FONT//
@font-face{
  font-family: 'DYSLEXIC';
    src: URL('https://static1.squarespace.com/static/60ed8680f8be342c4089b398/t/673e60d164606b40d5476069/1732141265542/OpenDyslexic-Regular.otf');
}
//ASSIGN DYSLEXIC FONT//
p1, p2, p3 {font-family:'DYSLEXIC'!important;}

  • Replies 2
  • Views 186
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Solution
Posted
1 hour ago, CSShelpplease said:

I am...trying to upload custom fonts to my version 7.1 website. The headings...are showing up most of the time. Unfortunately, the paragraph font is not working at all. 

Although paragraph text formatting is shown as P1, P2 and P3 in the toolbar, there isn't a "p1" tag in HTML. Instead, all paragraph text uses the "p" tag.

  • Larger paragraph text (P1) uses "p" and has a class added to indicate it should be larger, like this: <p class="sqsrte-large">
  • Standard paragraph text (P2) is simply "p".
  • Smaller paragraph text (P3) uses "p" and has a class added to indicate it should be smaller, like this: <p class="sqsrte-small">

In your CSS, instead of p1, p2, p3 you'll want to use p.sqsrte-large, p and p.sqsrte-small respectively:

p.sqsrte-large, p, p.sqsrte-small {
  font-family:'DYSLEXIC'!important;
}

Did this help? Please give feedback by clicking an icon below  ⬇️

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

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.