Jump to content

CSS to inherit the heading font family

Recommended Posts

Posted

Site URL: https://ukulele-rabbit-z4zx.squarespace.com/

Hello! I'm creating a Squarespace template to sell. 

As the summary blocks aren't possible to change the title to the heading font without code, is it possible to make it so that it just makes the font family whatever the headings are currently set to? 

i.e. 

.summary-title-link {
	font-family: ??inherit??;
}

This is because whoever buys the theme will likely change the font to their own branding, and I don't want to have to get everyone to touch the code in order to change this. 

Thanks!

Site password: pearler

Posted
55 minutes ago, pearler1570048501 said:

Site URL: https://ukulele-rabbit-z4zx.squarespace.com/

Hello! I'm creating a Squarespace template to sell. 

As the summary blocks aren't possible to change the title to the heading font without code, is it possible to make it so that it just makes the font family whatever the headings are currently set to? 

i.e. 


.summary-title-link {
	font-family: ??inherit??;
}

This is because whoever buys the theme will likely change the font to their own branding, and I don't want to have to get everyone to touch the code in order to change this. 

Thanks!

Site password: pearler

you can use css variable var() to assign font name dynamically

CSS Variables - The var() function (w3schools.com)

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

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