A user seeks help replacing the cart icon on their Dawn theme Shopify store with a custom SVG icon they’ve uploaded to their CDN.
Current Issue:
The user has located the icon-cart-empty liquid file containing the existing cart icon code
They’re unclear about the exact process for replacing the old SVG code with the new one
Specifically confused about which URL or code snippet to replace
Guidance Provided:
Open the custom icon’s CDN link, right-click on the icon, select “Inspect” to view the SVG code
Copy the entire <svg> element from the browser’s developer tools
Navigate to: Online Stores > Themes > More Actions > Edit code
Search for “cart” or “icon-cart” in the code editor search bar
Locate the icon-cart-empty file and replace the existing SVG code with the copied SVG
Note: PNG format won’t work; must use SVG code
Status:
The discussion remains ongoing as the user continues to struggle with understanding Step 4 (pasting the SVG code into the liquid file). The helper is requesting a screenshot of the opened file to provide clearer guidance.
Summarized with AI on November 17.
AI used: claude-sonnet-4-5-20250929.
@milkymotorsport Once you have the svg copied. You will need to replace the cart-icon from your theme. And that is icon-cart-empty file, the place you sent all the code above.
Each theme will have different name file
However you can search for the “cart”, “cart-icon” And it should be in Snippets of the theme
Yes, I know, but the help I’m looking for here is which URL do I replace the old icon with the new icon. I understand how to do everything else. Replacing the value for “xmlns” doesn’t work. This is what I need help with. If you could provide the full code that would be helpful with this image URL - https://cdn.shopify.com/s/files/1/0574/6429/1511/files/cart-icon.png
Every cart-icon of the theme is displayed with the svg, so the only way you can change the cart-icon is follow my step above to get the svg of your new icon, then replace it with the new one.
The png here, won’t work, you can only get the svg from the first link you sent in the thread.