Change cart icon in lorenza theme

I’m working in the Lorenza theme, and this is my store:

Store: https://66cdcb-86.myshopify.com/

Password: chohme

I want to do is change the cart icon to a custom svg I have. How do I do that?

1 Like

Hi @jasminsharp97

You can replace the default svg code in the icon-cart.liquid file with your svg code.

1 Like
  • Here is the solution for you @jasminsharp97
  • Please follow these steps:
  1. Go to Online Store → Theme → Edit code.
  2. Open your theme.liquid file
  3. In theme.liquid, paste the below code before and press ‘Save’ to save it

document.querySelector(“.header__icon–cart .icon-header-button__icon .icon”).innerHTML = your SVG icon

  • Please press ‘Like’ and mark it as ‘Solution’ if you find it helpful. Thank you.
1 Like

How do I figure out my SVG code?

That worked, thank you so much!

1 Like

Glad to help you. Have a good day.

1 Like

One more thing - this svg is causing me problems; the stroke is wrong. Can you help me figure out what’s wrong with this svg file?