What's your biggest current challenge? Have your say in Community Polls along the right column.

How to change the trash bin icon in cart to something like an "X" instead ?

Solved

How to change the trash bin icon in cart to something like an "X" instead ?

nanahcubotal
Tourist
10 0 3

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

Accepted Solution (1)

DaisyVo
Shopify Partner
1040 130 144

This is an accepted solution.

Hi @nanahcubotal 

 

To complete your requests, please follow these steps:
  1. Go to Shopify Admin > Online Store > Theme > Customize > Theme Settings > Custom CSS https://prnt.sc/i8ljAMlHJUKl
  2. Paste the code provided into the Custom CSS section.

 

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;
}

 

Here is the result: https://prnt.sc/WQGGYT_ZuOHO
 
If you don't want it to be red, please remove the color line on the code
If you don't want it to be bold, please remove the font-weight line in the code
 
I hope this helps
 
Best,
 
Daisy
Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution

View solution in original post

Replies 6 (6)

DaisyVo
Shopify Partner
1040 130 144

This is an accepted solution.

Hi @nanahcubotal 

 

To complete your requests, please follow these steps:
  1. Go to Shopify Admin > Online Store > Theme > Customize > Theme Settings > Custom CSS https://prnt.sc/i8ljAMlHJUKl
  2. Paste the code provided into the Custom CSS section.

 

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;
}

 

Here is the result: https://prnt.sc/WQGGYT_ZuOHO
 
If you don't want it to be red, please remove the color line on the code
If you don't want it to be bold, please remove the font-weight line in the code
 
I hope this helps
 
Best,
 
Daisy
Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
nanahcubotal
Tourist
10 0 3

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?

DaisyVo
Shopify Partner
1040 130 144

HI @nanahcubotal 

 

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

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
nanahcubotal
Tourist
10 0 3

It is working on the cart drawer, the result isn't reflected on the full cart page

DaisyVo
Shopify Partner
1040 130 144

Hi @nanahcubotal 

 

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

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
nanahcubotal
Tourist
10 0 3

YES! beautiful, thank you!