MariElisabeth Posted October 4, 2023 Posted October 4, 2023 This is the code I used and it works on the shop page, but then it shows up when I click on the actual workshop. Can someone help me figure out what I need to change? Thank you!! /* Sale out to Early Bird */ .product-mark.sale { visibility: hidden; } .product-mark.sale:before { visibility: visible; content: "Early Bird!"; background-color: #1f1f1f !important; position: absolute; left: 42%; top: 1px; transform: translateX(-50%); padding: 2px 7px; }
Lesum Posted October 4, 2023 Posted October 4, 2023 @MariElisabeth You can remove the code you added previously and add this code: #productList .product-mark.sale:before { visibility: visible; content: "Early Bird!"; background-color: #1f1f1f !important; position: absolute; left: 42%; top: 1px; transform: translatex(-50%); padding: 2px 7px; } If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee?
MariElisabeth Posted October 5, 2023 Author Posted October 5, 2023 Thank you that worked! Then I added this to take the Sale of the page of the page when you click on it too. #productDetails .product-mark { visibility: hidden; } Lesum 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment