The2ndLook Posted February 8, 2021 Share 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 1 Link to comment
Beyondspace Posted February 19, 2021 Share 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; } tuanphan 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 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
The2ndLook Posted February 20, 2021 Author Share Posted February 20, 2021 Thank you so much @bangank36 That worked perfectly! I am so grateful Beyondspace 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment