Jump to content

Can't get the individual products to change to custom font

Recommended Posts

Posted

Site URL: https://theprintshoplsl.com/

I've managed to swap most of my site to a custom font using CSS. However, when I go into my product individual pages, the stock font is still there. The collection page has been swapped, but the individual products didn't.

Thoughts?

  • Replies 5
  • Views 297
  • Created
  • Last Reply
Posted

Hi @Print_Shop,

Try adding !important to the end of your CSS lines to override the default styles:

image.thumb.png.b7485b835640d24c08221a95eab80e11.png

Further reading: https://stackoverflow.com/questions/9245353/what-does-important-mean-in-css

Hope this helps!
-Tyler

The above post may be outdated. I’m no longer active in the Squarespace ecosystem, so I won’t see your direct messages. For better resources about web accessibility, I’ve documented some of my thoughts on my forum profile.

Posted

what's the CSS I should use to accomplish this? I've tried so many I have no idea which one to even add !important to

 

Thanks

Posted

  

1 hour ago, Print_Shop said:

I've managed to swap most of my site to a custom font using CSS

Wherever you added the custom code to change your font:

h1 {
  font-family: 'ink free';
}

Instead change it to this:

h1 {
  font-family: 'ink free' !important;
}

 

The above post may be outdated. I’m no longer active in the Squarespace ecosystem, so I won’t see your direct messages. For better resources about web accessibility, I’ve documented some of my thoughts on my forum profile.

Posted

that did the trick. Thanks!

Any idea how to get the price to change? I added !important after all font changes

Posted
.product-price {
  font-family: 'ink free' !important;
}

image.png.06242c3ff2975c7456c071a4e1016cab.png

The above post may be outdated. I’m no longer active in the Squarespace ecosystem, so I won’t see your direct messages. For better resources about web accessibility, I’ve documented some of my thoughts on my forum profile.

Archived

This topic is now archived and is closed to further replies.

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