I’d like to replace the hamburger menu icon on mobile with a custom SVG, there aren’t liquid files for this like on other themes I’ve worked on in the past and I would appreciate some guidance on where to add/replace this code please.
SVG link: https://cdn.shopify.com/s/files/1/0730/9456/2033/files/menu-grey.svg?v=1746112774
url: https://milosminimart.com/
pw: minimart2025
1 Like
Hello @blakelyhiner
Please follow the steps below after logging into the Shopify admin:
-
Go to your Shopify Admin panel.
-
Click on Online Store > Themes.
-
Find the live theme and then click Actions > Edit code.
-
Search for header.liquid
-
Inside that search for “mobile-toggle” and replace the existing code with your svg code: https://prnt.sc/H2tvNlHJrCr0
-
Then search for app.css
-
Please insert the provided CSS code at the end of the file and save the changes.
.mobile-toggle svg
{
width: 100%;
height: 100%;
}
Note: if you have not found SVG code, then just open your SVG image in Notepad and copy that code and paste it.
Please hit Like and Mark it as a Solution if you find our reply helpful.
I appreciate your suggestion, my header.liquid doesn’t contain any SVG or the mobile-toggle area. I have a separate snippet for mobile-toggle.liquid and then another for header-mobiler-menu.liquid - this one is the only one that contains the svg mentions, but no place to replace the url for the svg file.
Hello @blakelyhiner
Could you please share the code from both files so we can review it and provide you with a solution?