hasher22 Posted August 17, 2021 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!
paul2009 Posted August 17, 2021 Posted August 17, 2021 See this thread: Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.
hasher22 Posted August 17, 2021 Author Posted August 17, 2021 2 hours ago, paul2009 said: See this thread: Thanks! Fiddling with it now
hasher22 Posted August 17, 2021 Author Posted August 17, 2021 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); }
paul2009 Posted August 17, 2021 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. Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.
hasher22 Posted August 19, 2021 Author 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.