Jump to content

Changing SOLD OUT to EARLY BIRD! in shop

Recommended Posts

Posted

This is the code I used and it works on the shop page, but then it shows up when I click on the actual workshop. Can someone help me figure out what I need to change? Thank you!!

/* Sale out to Early Bird */
.product-mark.sale {
    visibility: hidden;
}
.product-mark.sale:before {
    visibility: visible;
    content: "Early Bird!";
  background-color: #1f1f1f !important;
    position: absolute;
    left: 42%;
  top: 1px;
    transform: translateX(-50%);
      padding: 2px 7px;
}

 

Screenshot 2023-10-04 at 2.13.41 PM.png

Screenshot 2023-10-04 at 2.13.33 PM.png

Posted

@MariElisabeth You can remove the code you added previously and add this code: 

#productList .product-mark.sale:before {
    visibility: visible;
    content: "Early Bird!";
    background-color: #1f1f1f !important;
    position: absolute;
    left: 42%;
    top: 1px;
    transform: translatex(-50%);
    padding: 2px 7px;
}

 

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

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.