Jump to content

Change custom css font for images titles

Recommended Posts

On 2/4/2022 at 9:50 AM, ScandiWater said:

I would like to change the font of my images titles but cannot figure out the correct line of code

The font of the list item titles is set using the following selectors and is calculated based on viewport width:

.user-items-list-item-container.user-items-list-simple[data-title-font-unit="rem"] .list-item-content__title

You haven't told us how you want to change the font but this should get you started.

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.
Catch up on all the release notes and announcements 2023 [for Circle members only] (there's a public version here)

Buy me a coffee

Link to comment
On 2/7/2022 at 4:29 PM, ScandiWater said:

Hi,

Thank you.

I would like to change the font to a custom font: Barlow-Regular

Add to Design > Custom CSS

h2.list-item-content__title {
    font-family: Barlow-Regular !important;
}

 

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.