hasher22 Posted August 17, 2021 Share Posted August 17, 2021 Site URL: https://onyxhive.com.au/cakes Hello, Is there anyway of adding a subheading under the product name? https://onyxhive.com.au/cakes For example under Cosmos, I want to write "cookies n cream" Thanks! Link to comment
paul2009 Posted August 17, 2021 Share Posted August 17, 2021 See this thread: About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. Content: Links in my posts may refer to SF Digital products or may be affiliate links. If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too. Link to comment
hasher22 Posted August 17, 2021 Author Share Posted August 17, 2021 (edited) 2 hours ago, paul2009 said: See this thread: Thanks! Fiddling with it now Edited August 17, 2021 by hasher22 Link to comment
hasher22 Posted August 17, 2021 Author Share Posted August 17, 2021 (edited) 5 hours ago, paul2009 said: See this thread: Hello, Is there anyway of just adding the subheading to this page only? https://onyxhive.com.au/cakes The subheading works, but how the JS works, it's showing in the individual product page as well cause I have to edit the product name. Edit: I found a way to add the subheading via CSS only. But its adding to all products not just one, how do I target one product? The code I use: Quote .products.collection-content-wrapper .grid-main-meta .grid-title:after { display: block; content: "Test Test"; font-size: 15px; line-height: 2em; } .products.collection-content-wrapper .grid-main-meta .grid-title:first-line { font-size: calc(.36vw + 1.5rem); } Edit 2: I fixed it! Used code: Quote #thumb-cosmos .grid-title:after { display: block; content: "Cookies n Cream"; font-size: 15px; line-height: 2em; } #thumb-onyx .grid-title:after { display: block; content: "Chocolate Cherry"; font-size: 15px; line-height: 2em; } #thumb-ivory .grid-title:after { display: block; content: "White Choc & Vanilla"; font-size: 15px; line-height: 2em; } #thumb-scarlet .grid-title:after { display: block; content: "Strawberry n Cream"; font-size: 15px; line-height: 2em; } #thumb-obsidian .grid-title:after { display: block; content: "Triple Chocolate"; font-size: 15px; line-height: 2em; } .grid-title:first-line { font-size: calc(.36vw + 1.5rem); } Edited August 17, 2021 by hasher22 Link to comment
paul2009 Posted August 17, 2021 Share Posted August 17, 2021 Yes, it works by adding additional information to the Product title, so that it appears everywhere. It is often used for brand information and needs to carry through to other pages, cart and so on. If you only want it to appear on the Product List Page (PLP), you may want to consider a different solution, such as repurposing tags. About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. Content: Links in my posts may refer to SF Digital products or may be affiliate links. If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too. Link to comment
hasher22 Posted August 19, 2021 Author Share Posted August 19, 2021 On 8/17/2021 at 9:56 PM, paul2009 said: Yes, it works by adding additional information to the Product title, so that it appears everywhere. It is often used for brand information and needs to carry through to other pages, cart and so on. If you only want it to appear on the Product List Page (PLP), you may want to consider a different solution, such as repurposing tags. Yes I found the solution and I already posted it 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