Jump to content

Anyway to add a subheading to products?

Recommended Posts

  • Replies 5
  • Views 759
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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.

Link to comment
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);
}

Capture.JPG

 

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);
}

Capture.thumb.JPG.38dc92b7e81d60429af3d09777731dba.JPG

Edited by hasher22
Link to comment

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.

Link to comment
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

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