How can I change the color of my hamburger menu to white?

Hi,

I would like to change the color of my hamburger menu to white, how can I make it happen?

tried this code:

svg.icon.icon-hamburger {
background-color: #FFFFFF !important;
}

thank you in advance!

  • Please include your theme link in the question as we have no idea what your website looks like or which theme are you using.
  • Ideally it should be:
svg.icon.icon-hamburger {
      fill: #FFFFFF !important;
}​

Hi @Eli90

Can you share with me the page url..

Hi @Eli90 ,

Kindly share your store URL, so that we can check and provide you with the solution.

Hey @Eli90 ,
Welcome to the Shopify community!
You can follow the instruction below:
Go to Online Store->Theme->Edit code->base.css->paste bellow code in bottom of file.

svg.icon.icon-hamburger {
 fill: #fff !important;
}​

If you feel like my answer is helpful, please Like and mark it as a solution**.** Let me know if you have any further questions.
Thank you!
Raman

@SmallTask @Lucid_Polygon @ReturnPrime @PageFly-Richard

thank you all for helping, the solutions didn’t work unfortunately.

Url. https://sugar-free-eu.myshopify.com/

PASSWORD: eveirt

@Eli90 I tested it on your website and it


worked. Where did you put the code?

1 Like

@Lucid_Polygon Hi, theme.css

I just checked your page. I don’t find the code. Inspect and show where did you put it. Like the screenshot I sent above.

If you have put it rightly, when you right click on the burger icon and click inspect, you should see it in chrome.

1 Like

@Lucid_Polygon I’m not sure why, but I can’t see it although it was added to the theme.css

Your code is wrong . The code is Fill not Color. Please check and write the correct code.

1 Like

@Lucid_Polygon I tried both (fill first), this also doesn’t work

Something is wrong in your theme as the code is tested and right. Try this:

.icon-hamburger {
 fill: #fff !important;
}

Keep this code and let us know.

1 Like

@Lucid_Polygon

yes, something is probably wrong. This also doesn’t work

Try putting inline css. Go to
Assets > icon-burger > then add inline CSS

style="fill: white !important"
![Screen Shot 2022-09-17 at 1.19.05 PM.png|1902x722](upload://r6td6sRKM0Kxeq5wkWefsznmlyJ.jpeg)
1 Like

@Lucid_Polygon you’re the best! worked like magic! thanks a lot, I was trying to solve it for so long!!!

thank you !!

1 Like

Please like the replies and mark them as an accepted solutions. Thanks.

1 Like