The2ndLook Posted February 8, 2021 Posted February 8, 2021 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
Beyondspace Posted February 19, 2021 Posted February 19, 2021 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 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; } BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> 🤖 Ask me anything
The2ndLook Posted February 20, 2021 Author Posted February 20, 2021 Thank you so much @bangank36 That worked perfectly! I am so grateful
Recommended Posts
Archived
This topic is now archived and is closed to further replies.