Cart page cart icon error

Topic summary

A Shopify store is experiencing a Liquid code error with the cart icon that appears only after products are added to the cart and users navigate to the cart or home page. The icon functions correctly when the cart is empty.

Proposed Solutions:

  • Solution 1: Locate and delete specific code from the base.css file
  • Solution 2: The cart icon file is missing from the theme. Steps include:
    • Navigate to theme code editor
    • Go to snippets section
    • Create a new file named ‘cart-icon’
    • Add specific markup code and save

Both responses include screenshots showing the error and implementation steps. The issue appears to be theme-related, involving either CSS conflicts or missing template files.

Summarized with AI on November 5. AI used: claude-sonnet-4-5-20250929.

Hi, When the product is not added in cart the icon works fine, but when product added to cart and then we go to cart page or home page then no there is an liquid code error. How to rectify the issue.

Website: https://vanji-in.myshopify.com/

Password: vanji

Hello @Sivadarshan
Search this code in your base.css file and delete and then save the file.

If this was helpful, hit the like button and accept the solution.
Thanks

Hello @Sivadarshan ,
Cart Icon is missing from theme files. Steps how to resolve it.

  1. Go to theme code.

2.Go to snippets → Add a snnippets → Create new file with name ‘icon-cart

  1. Add this code on it and save it.

1 Like