Jump to content

How to make 'sold out' text for products be on the same line as the price?

Recommended Posts

  • Replies 9
  • Views 416
  • Created
  • Last Reply

Top Posters In This Topic

On 4/25/2022 at 12:04 AM, nobody said:

this is the url for the shop: https://donkaka.com/spiritual-playgirl

Add to Design > Custom CSS

.products.collection-content-wrapper .grid-meta-status {
    position: absolute;
    right: 0;
    bottom: 0;
}
section.grid-meta-wrapper {
    position: relative;
}

 

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
  • 2 weeks later...
  • 2 weeks later...
12 hours ago, nobody said:

also the previous code seems to overlap text when i hide the prices on a product page

Screen Shot 2022-05-23 at 11.32.54 AM.png

Use this code

.product-mark.sold-out {
    font-size: 0;
}
.product-mark.sold-out:before {
    font-size: 18px;
    content: "Unavailable";
}

How did you hide price?

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.