Jump to content

sold - sign position / mobile 7.1

Recommended Posts

Hello!

I have been editing the 'SOLD' sign in css but it's not quite what I want to achieve.

Essentially I would like the whole image to have a transparency with the 'sold' sign centred. I would also like the option of being able to still click into the item. (currently the transparency overlaps and it does not allow me to click into the item, it also looks quite different in the mobile version - I have attached images of both cases)

I would be so grateful if someone could help me with the code!

 

Thank you so much!

 

https://clavichord-fife-6enj.squarespace.com/config/ 

password: amberamber

 

 

IMG_57F8A1B81F20-1.jpeg

Screenshot 2021-02-08 at 11.10.38.png

Link to comment
  • 2 weeks later...
  • Replies 2
  • Views 406
  • Created
  • Last Reply
On 2/8/2021 at 6:30 PM, The2ndLook said:

Hello!

I have been editing the 'SOLD' sign in css but it's not quite what I want to achieve.

Essentially I would like the whole image to have a transparency with the 'sold' sign centred. I would also like the option of being able to still click into the item. (currently the transparency overlaps and it does not allow me to click into the item, it also looks quite different in the mobile version - I have attached images of both cases)

I would be so grateful if someone could help me with the code!

 

Thank you so much!

 

https://clavichord-fife-6enj.squarespace.com/config/ 

password: amberamber

 

 

IMG_57F8A1B81F20-1.jpeg

Screenshot 2021-02-08 at 11.10.38.png

You can try remove your current css and use this instead

.grid-item.post-type-store-item.sold-out .grid-meta-status {
   display: none; 
}
.grid-item.post-type-store-item.sold-out .grid-image {
  position: relative;
}
.grid-item.post-type-store-item.sold-out .grid-image:before {
   content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    opacity: 0.5;
    z-index: 99;
}
.grid-item.post-type-store-item.sold-out .grid-image:after {
   content: 'SOLD';
  font-size: 2em;
  font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99;
}

image.png.4dd0c756915b3268e63426d071c5eaf8.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Archived

This topic is now archived and is closed to further replies.

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