SourceProjects Posted October 31, 2022 Share Posted October 31, 2022 Hi guys, I am working on a site for a client and no matter what I do in style settings or in CSS injections, I cannot seem to change the product title sizes in the product pages. The default is H1, which doesn't look right... I have a feeling it could be to do with the sitewide fade-in transition settings, which might be interfering... But I don't want to remove that effect either! If anyone has any ideas, I would be grateful for your help. Here is an example of a product link on the site. Link to comment
Solution paul2009 Posted October 31, 2022 Solution Share Posted October 31, 2022 36 minutes ago, elizabethgaffney said: I am working on a site for a client and no matter what I do in style settings or in CSS injections, I cannot seem to change the product title sizes in the product pages. When you are using the 'Simple' Product Detail Page (PDP) layout you can set the style of the item name within the Site Styles panel: However, I see that you are using one of the newer PDP layouts ('Full'). Squarespace designers decided that these layouts would have fixed designs and so the site styles do not affect them. The heading size is calculated according to the browser width. In theory you could use some CSS to try to modify the font manually but, in all honesty, I don't recommend it as it could layout issues for visitors on some devices. However, if you want to try it, here's an example... .pdp-layout .pdp-details .pdp-details-title { font-size: 32px; } Did this help? Please give feedback by clicking an icon below ⬇️ SourceProjects 1 About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity 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 too!If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.Improve your online store with our extensions. Link to comment
SourceProjects Posted October 31, 2022 Author Share Posted October 31, 2022 Hi Paul, Thank you so much for your response and suggestion! I didn't realise that these new layouts would override style settings... Your CSS snippet seems to have worked wonderfully! It looks so much better now, many thanks. 37 minutes ago, paul2009 said: When you are using the 'Simple' Product Detail Page (PDP) layout you can set the style of the item name within the Site Styles panel: However, I see that you are using one of the newer PDP layouts ('Full'). Squarespace designers decided that these layouts would have fixed designs and so the site styles do not affect them. The heading size is calculated according to the browser width. In theory you could use some CSS to try to modify the font manually but, in all honesty, I don't recommend it as it could layout issues for visitors on some devices. However, if you want to try it, here's an example... .pdp-layout .pdp-details .pdp-details-title { font-size: 32px; } Did this help? Please give feedback by clicking an icon below ⬇️ paul2009 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment