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
  • Views 264
  • 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.

Work With Me 🖥️💻📱

Please remember to tag me so that I get a notification and respond to your help requests.

If my answers have helped you, please drop a like and mark my answer as best to help other users find solutions quickly.

You can also thank me or make requests by buying me a coffee . (Caffeine fuels me to take more requests)

For Squarespace Tips & Tricks, visit @squareskills (Youtube 📺 Tutorials)

For Premium and FREE plugins, visit Squareskills (Plugin Store) 🧩

Some links may be affiliate/referral links.

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.