Jump to content

Different Fonts/Font Styles in single Portfolio Page Title

Recommended Posts

Site URL: https://nicobaumann.com/

Hey there! I'm trying to use different fonts or font styles in a single portfolio page title. I.e. "Facebook" and "Skate Nation Ghana" in the first row would use different fonts, or one part would be bold or italic while the other isn't. Is that possible?

Thank you!

Nico

Edited by NicoB
double website
Link to comment
  • Replies 6
  • Views 497
  • Created
  • Last Reply

Top Posters In This Topic

22 minutes ago, NicoB said:

Site URL: https://nicobaumann.com/

Hey there! I'm trying to use different fonts or font styles in a single portfolio page title. I.e. "Facebook" and "Skate Nation Ghana" in the first row would use different fonts, or one part would be bold or italic while the other isn't. Is that possible?

Thank you!

Nico

Try 

#collection-62564707136c1779158d3090 .portfolio-hover-items-list > li:first-child span {
  color: red;
  font-family: Arial;
}

#collection-62564707136c1779158d3090 .portfolio-hover-items-list > li:nth-child(2) span {
  color: blue;
  font-family: tahoma;
}

Let me know how it works on your site

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

My testing

image.thumb.png.22957385d74ca5f599f26e7f2b111c81.png

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
On 4/23/2022 at 1:28 AM, NicoB said:

Hi, I'm politely bumping this thread back up to see if anyone has a solution for this problem.

Thank you in advance! 
Nico

Add to Design > Custom CSS

a.portfolio-hover-item[href="/work/facebook"] span:before {
    content: "FACEBOOK ";
    font-size: calc(~"(1.4 - 1) * 1.2vw + 1rem");
}
a.portfolio-hover-item[href="/work/facebook"] span:after {
    content: "skate nation ghana";
    color: yellow;
    font-size: 20px;
    font-size: calc(~"(1.4 - 1) * 1.2vw + 1rem");
}
a.portfolio-hover-item[href="/work/facebook"] span {
    font-size: 0;
}

 

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
  • 2 weeks later...

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.