How to get custom header cart Icon to show on mobile - DAWN

Topic summary

Custom cart icon on a Shopify Dawn theme displays on desktop but not on mobile.

  • Website URL shared; screenshots show desktop vs mobile header icons. Images are central to the issue.
  • Proposed fix: replace the SVG in both theme snippets: icon-cart.liquid and icon-cart-empty.liquid, since Dawn uses separate icons for empty and filled carts.
  • Technical context: Liquid is Shopify’s templating language. Header.liquid conditionally renders icons: if the cart is empty, it renders ‘icon-cart-empty’; otherwise, it renders ‘icon-cart’. SVG is the vector graphic used for the icon.
  • A participant noted the desktop icon did not appear changed either, suggesting edits may not be applied or only one snippet was updated.
  • Status: The original poster acknowledged awareness of the two icons but didn’t confirm a fix. No resolution reported; discussion remains open.
Summarized with AI on December 29. AI used: gpt-5.

Hi @INKLY

In header.liquide there are two type of icon

if cart == empty
            render 'icon-cart-empty'
          else
            render 'icon-cart'
          endif

one is for empty card another is with card. You have changed the item in cart icon :slightly_smiling_face: You need to change other one also.

It will solve your issues.