Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Change sold button to a custom JPEG image (Squarespace 7.1)


Clarilou

Question

  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Posted Images

2 answers to this question

Recommended Posts

  • 0

Hi,

First find this code & change background to background-color

.view-list .product-mark.sold-out {
    background: #000 !important;
    color: #fff !important;
    font-family: FUTURACUSTOM;
    letter-spacing: 0px;
    line-height: 0px;
    font-size: 16px;
    position: absolute;
    transform: rotate(
-20deg
);
    top: 10px;
    right: 10px;
    display: center;
    padding: 20px;
    border-radius: 100%;
    width: 20px;
    height: 20px;
    justify-content: center;
    align-items: center;
    text-align: center;
    display: flex;
}

Next, add this code

/* Sold out badge image */
.product-mark.sold-out {
    background-image: url(https://cdn.pixabay.com/photo/2021/01/04/12/07/cat-5887341__340.jpg) !important;
    background-size: cover;
    color: transparent !important;
    background-repeat: no-repeat;
}

image.thumb.png.10dbdf1ae697f21fa21e4bcb0820c379.png

Email me if you have need any help (free, of course.). Answer within 24 hours.

How to: Setup password & share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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