Jump to content

Any way to not include paragraph in CSS code?

Recommended Posts

Hello! How do I code my custom font to only appear in paragraphs, and not the paragraph titles? I would like to use my site's default header font but would like to change the paragraphs and have managed to do so with this:

@font-face {    
font-family: 'Inter';       
src: url(https://static1.squarespace.com/static/617fd453c9cdae47af322207/t/6194d6ce392000327a9eef1f/1637144273253/Inter-Regular.ttf); 
}
@font-face {    
font-family: 'Inter Black';       
src: url(https://static1.squarespace.com/static/617fd453c9cdae47af322207/t/6194d6d74b2c840fa7e975eb/1637144282089/Inter-Black.ttf); 
}

But it also changes the font of the titles, which I don't want it to do. Any suggestions? Thanks in advance!

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

Top Posters In This Topic

On 11/17/2021 at 6:19 PM, meristemmedia said:

Hello! How do I code my custom font to only appear in paragraphs, and not the paragraph titles? I would like to use my site's default header font but would like to change the paragraphs and have managed to do so with this:

@font-face {    
font-family: 'Inter';       
src: url(https://static1.squarespace.com/static/617fd453c9cdae47af322207/t/6194d6ce392000327a9eef1f/1637144273253/Inter-Regular.ttf); 
}
@font-face {    
font-family: 'Inter Black';       
src: url(https://static1.squarespace.com/static/617fd453c9cdae47af322207/t/6194d6d74b2c840fa7e975eb/1637144282089/Inter-Black.ttf); 
}

But it also changes the font of the titles, which I don't want it to do. Any suggestions? Thanks in advance!

Kindly share your site with the protected password to check it together

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. 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.