jessasaurus Posted December 21, 2023 Share Posted December 21, 2023 Soo im trying to do kinda the same as to the post ("Sold Out" Image Overlay) but for the Limited availability label i been able to add the label to the image but can't seem to be able to hide the default label with-out hide the new one this is the code I'm using, I think I'm just using the wrong class ids? any advice would be greatly appreciated Thanks! .grid-meta-status .product-scarcity:not([hidden]):before { content: 'Just a few spots left!'; /* Update text for limited availability */ font-weight: bolder; color: #fff; font-size: 2em; width: fit-content; /* Adjust width as needed */ padding: 5px 10px; /* Adjust padding as needed */ border-radius: 10px; /* Adjust border-radius for roundness */ background-color: #000; /* Black background color */ position: absolute; z-index: 999; top: 20%; left: 25%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; } .grid-meta-status .product-scarcity:not([hidden]):after { content: 'Just a few spots left!'; /* Update text for limited availability */ font-weight: bolder; color: #fff; font-size: 2em; width: fit-content; /* Adjust width as needed */ padding: 5px 10px; /* Adjust padding as needed */ border-radius: 10px; /* Adjust border-radius for roundness */ background-color: #000; /* Black background color */ position: absolute; z-index: 999; top: 20%; left: 25%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; } Link to comment
tuanphan Posted December 24, 2023 Share Posted December 24, 2023 Can you share link to site? We can check easier Bilash 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
jessasaurus Posted December 24, 2023 Author Share Posted December 24, 2023 sure the site is https://www.isleofskating.com/ Link to comment
tuanphan Posted December 27, 2023 Share Posted December 27, 2023 Did you solve it? I don't see default label Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
jessasaurus Posted December 29, 2023 Author Share Posted December 29, 2023 Only just seen your reply, no i only just disabled the custom code, but it is now showing now Link to comment
tuanphan Posted January 1 Share Posted January 1 To remove last spots label, add this code above your CSS code .product-scarcity { color: transparent !important; background-color: transparent !important; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) 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