TrevorBaum
-
Posts
4 -
Joined
-
Last visited
Reputation Activity
-
TrevorBaum got a reaction from tuanphan in Adding a second line/subtitle to grid and product detail pages
Got it! Thank you so much Paul šš¼
-
TrevorBaum got a reaction from paul2009 in Adding a second line/subtitle to grid and product detail pages
Got it! Thank you so much Paul šš¼
-
TrevorBaum got a reaction from paul2009 in Adding a second line/subtitle to grid and product detail pages
Amazing, thank you Paul! I was able to get this to work for the Product Details Page, but it looks like the CSS will need to be different for the home/grid page. Any ideas?
Thanks again.
-
TrevorBaum reacted to paul2009 in Adding a second line/subtitle to grid and product detail pages
Palmera is a Squarespace 7.1 template andĀ IĀ provided some code to split product titles over two linesĀ here:Ā https://sf.digital/squarespace-solutions/display-product-titles-on-two-lines-with-squarespace-71
The article doesn't describe how to change the formatting of the two lines, but it is possible to do this with a little CSS. For example, on the Product Details Page:
/* Smaller second line */ .ProductItem .ProductItem-details h1.ProductItem-details-title { Ā font-size: 22px; Ā line-height: 1.8em; } /* Larger first line */ .ProductItem .ProductItem-details h1.ProductItem-details-title:first-line { Ā font-size: calc(2.16vw + 1rem); } This CSS is just an example; I haven't tested it for your site because it is password-protected and therefore inaccessible.
Did this help?Ā Please give feedback by clicking an iconĀ belowĀ Ā ā¬ļø
-
TrevorBaum reacted to paul2009 in Adding a second line/subtitle to grid and product detail pages
Yes, that's correct. The List page usually has these classes which you can substitute instead of those for the Detail page:
.products.collection-content-wrapper .grid-main-meta .grid-titleĀ So it would be something like...
.products.collection-content-wrapper .grid-main-meta .grid-titleĀ { Ā font-size:12px; Ā line-height: 1.8em; } .products.collection-content-wrapper .grid-main-meta .grid-title:first-line { Ā font-size: calc(.36vw + 1rem); } Ā Ā Ā If a post helps you,Ā please click a "Like"Ā option belowĀ Ā āļø