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!
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025