Jump to content

CSS code for 7.0 to hide Sold sticker on individual sold products

Recommended Posts

Site URL: https://www.laurapedley.com/original-fine-art-for-sale

Hi, does anyone know of a piece of code for version 7.0 that could hide the SOLD sticker on specfiic products after they have sold? I'm a painter and once the pieces have sold I want to change the product listings into a portfolio, but still using the product page set up. I've found code to hide the price and add to cart button within the individual product listing, but not the sold sticker! Thanks for any help x

Link to comment
  • 3 weeks later...
  • Replies 3
  • Views 573
  • Created
  • Last Reply

Top Posters In This Topic

On 6/29/2021 at 4:35 AM, LJPedley said:

Site URL: https://www.laurapedley.com/original-fine-art-for-sale

Hi, does anyone know of a piece of code for version 7.0 that could hide the SOLD sticker on specfiic products after they have sold? I'm a painter and once the pieces have sold I want to change the product listings into a portfolio, but still using the product page set up. I've found code to hide the price and add to cart button within the individual product listing, but not the sold sticker! Thanks for any help x

Hi. Do you still need help on this?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 4 weeks later...
On 8/12/2021 at 10:48 PM, LaurieLandry said:

I'm not the original poster, but I could use help on mine. I want to be able to change from "Sold Out" to "Sold" and hide the price on the sold item on the item listing.

https://laurielandry.squarespace.com/available-works

Thank you in advance!

Hi,

Add to Design > Custom CSS

.product-mark.sold-out {
    visibility: hidden;
}

.product-mark.sold-out:before {
    visibility: visible;
    content: "SOLD";
    position: absolute;
    top: 0;
    right: 0;
    background: #222;
    padding: 6px 8px;
    color: #fff;
    line-height: 1em;
    text-transform: uppercase;
    -webkit-font-smoothing: antialiased;
}

a.product.sold-out .product-price {
    display: none !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.