Jump to content

Reset two word fonts in paragraph

Recommended Posts

Site URL: https://www.attaliemusic.com/music

Hi there, 

I've customed all my fonts, but I'd like for two words to not be using the customised font but say sans source pro. How can I change the font of just 2 words? 

 

Also, other question, on my contact page can anyone provide the code to just have the first sentence letter in capital and not all words in capitalize? https://www.attaliemusic.com/contact

Link to comment
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

1 hour ago, Attalie said:

I've customed all my fonts, but I'd like for two words to not be using the customised font but say sans source pro. How can I change the font of just 2 words? 

 

You need to be more specific as it depends on where the words are.

The easiest way is to set the words to bold and italic at the same time.

This will wrap them in <strong> and <em> tags.

Then target the block they're in and add css - for example:

#blockid p strong em {
  font-family: "FONTNAME";
  font-style: normal;
  font-weight: normal;
}

Potentially using !important as an override.

The above is for regular Paragraph text; you may need to use h1, h2 or h3 etc.

If my answers have helped you, please drop a like and mark my answer as best to help other users find solutions quickly. Some links may be affiliate/referral links.

You can also thank me by buying me a coffee .

Squarespace Tips & Tricks: @squareskills (Youtube 📺 Tutorials - Resource site coming soon)

Link to comment
On 11/3/2021 at 2:27 AM, Attalie said:

Thank you! the words are BLK JKS under picture that's on the left side, in the bottom paragraph. Itried the code but does not seem to work

Do you still need help? 

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

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.