victoria85 Posted May 28, 2023 Author Share Posted May 28, 2023 (edited) Hi Tom Definitely something not quite right still. I'll insert a screen grab below. The 'sale' badge is taking precedent on an item that's out of stock. I think it's more logical to show it as 'sold out' on the badge even though it was a sale item. (https://stoneandspectra.com/shop amethyst 7) Screen grab: I'll leave the css as it is so you can see it. Thanks for your help 😊 Edited May 28, 2023 by victoria85 Link to comment
creedon Posted May 28, 2023 Share Posted May 28, 2023 Quote Definitely something not quite right still. Move the sold out code after the sale code. In CSS the last ruleset wins and it's declarations are applied over previous ones. Let us know how it goes. victoria85 1 Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
victoria85 Posted May 28, 2023 Author Share Posted May 28, 2023 Hi Tom! This has worked perfect!! I'm not completely fluent in css, I know a lot more than I did (I get by and I'm learning!) so thank you for your patience. I really appreciate the help. My shop is looking exactly how I want it to now in terms of the sale badges and sold out badges. I'm super happy with them! Here's how it's looking: Thanks for all your help 😃 creedon 1 Link to comment
AntonioSantos Posted September 19, 2023 Share Posted September 19, 2023 I was wondering if you have a similar code but to use on summary block Link to comment
creedon Posted September 19, 2023 Share Posted September 19, 2023 56 minutes ago, AntonioSantos said: I was wondering if you have a similar code but to use on summary block I do not. Summary blocks natively support badges. Product list pages natively use a mixture of badges and text to indicate state. Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
AntonioSantos Posted September 19, 2023 Share Posted September 19, 2023 Thank you for answering. Yes I see the badges. I was just trying to change style a bit and the allignement. 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