Jump to content

Different Fonts/Font Styles in single Portfolio Page Title

Recommended Posts

Posted (edited)

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
  • Replies 6
  • Views 577
  • Created
  • Last Reply

Top Posters In This Topic

Posted
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 - PDF Lightbox popup - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> No-code customisations for Squarespace

Posted

Thank you! That's a great start. I'd love to know if is this also possible in a single line? 

Basically, giving the bit in the yellow circle a different color/font/font style.

 

 

circle.png

Posted

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

Thank you in advance! 
Nico

Posted
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!)

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