We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

How to fix shopping cart icon

Solved

How to fix shopping cart icon

tmitch
Excursionist
23 0 7

Hello, recently I added a custom shopping icon and for some reason another one shows up under it when you add something to cart. Is there any way to fix this?

Screenshot 2024-08-27 at 11.34.29 PM.png

Accepted Solution (1)

Moeed
Shopify Partner
7764 2081 2567

This is an accepted solution.

Hey @tmitch 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
svg#cart:nth-child(2) {
    display: none !important;
}
</style>

RESULT:

Moeed_0-1724827326170.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


View solution in original post

Replies 5 (5)

Moeed
Shopify Partner
7764 2081 2567

This is an accepted solution.

Hey @tmitch 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
svg#cart:nth-child(2) {
    display: none !important;
}
</style>

RESULT:

Moeed_0-1724827326170.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


tmitch
Excursionist
23 0 7

Perfect it worked. Thank you!

anupam1607
Shopify Partner
58 11 14

You have to remove the icon in 2 ways.

1. Using CSS, find out both icons class names and then add display: none CSS 

2. Remove DOM structure from the header.liquid file. The file name may be different according to your Shopify theme.
Screenshot_4.png

 

Buy me a coffee.
- Was your question answered? Mark it as an Accepted Solution. ❤️
- Don't forget to give me Thumbs Up.
- Store, Product and Collection Modifications | Apps and Sales Channel | Animation
- Lets connect anupammistry1607@gmail.com 

BSS-TekLabs
Shopify Partner
2401 695 835

- Here is the solution for you @tmitch 
- Please follow these steps:

z5686811214059_e66de1953f1db631f9134af5cdb796ad.jpg

- Then find the theme.liquid file.
- Then add the following code at the before tag </head> and press 'Save' to save it.

<style>
svg#cart:nth-child(2) {
    display: none !important;
}
</style>

- Here is the result you will achieve:

BSSTekLabs_0-1724854951653.png

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

BSSCommerce-B2B
Shopify Partner
1972 564 567

@tmitch ,

Step 1. Go to Admin -> Online store -> Theme > Edit code

Step 2. Find the file theme.liquid.

Step 3. Add this code above </body>

<style>
#cart-icon-bubble > svg:nth-child(2) {
  display:none!important
}
</style>

Result

BSSCommerceB2B_0-1724861667305.png

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now