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

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. 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.