Shopify themes, liquid, logos, and UX
How do I change the trash bin icon in the cart (to remove something) to something like an "X" instead ?
I'm using the Dawn theme if that helps.
Thanks x
Solved! Go to the solution
This is an accepted solution.
div#CartDrawer-CartItems .cart-item__quantity-wrapper.quantity-popover-wrapper button.cart-remove-button span.svg-wrapper::before {
content: "X";
font-size: 20px;
color: red;
font-weight: bold;
}
div#CartDrawer-CartItems .cart-item__quantity-wrapper.quantity-popover-wrapper button.cart-remove-button span.svg-wrapper > svg {
display: none !important;
}
This is an accepted solution.
div#CartDrawer-CartItems .cart-item__quantity-wrapper.quantity-popover-wrapper button.cart-remove-button span.svg-wrapper::before {
content: "X";
font-size: 20px;
color: red;
font-weight: bold;
}
div#CartDrawer-CartItems .cart-item__quantity-wrapper.quantity-popover-wrapper button.cart-remove-button span.svg-wrapper > svg {
display: none !important;
}
THANK YOU. The Custom CSS section wasn't accepting this code, so I placed it at the bottom of the base.css asset.
Now my next question, it is still a trash bin on the full cart page — any way of changing this to remain cohesive with the cart drawer?
The code is supposed to work on the cart drawer only, not cart page https://prnt.sc/WQGGYT_ZuOHO
It turned out to be work on the cart page not cart drawer at the moment? May I have the screenshot, please?
Best,
Daisy
It is working on the cart drawer, the result isn't reflected on the full cart page
Please add this code more
td.cart-item__quantity cart-remove-button > a > span.svg-wrapper::before {
content: "Remove";
font-size: 14px !important;
}
td.cart-item__quantity cart-remove-button > a > span.svg-wrapper > svg {
display: none;
}
I saw that you have changed the text to remove, so I change the code to " remove" also
Here is the result: https://prnt.sc/fthy7UQh6T_J
Best,
Daisy
YES! beautiful, thank you!
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024