hamburger button error on mobile (Dawn Theme)

Topic summary

A user is experiencing an issue with the Dawn theme’s mobile hamburger menu icon. While they successfully customized the hamburger icon, the original icon still appears overlaid on the close button when the menu is opened.

Proposed Solutions:

  • CSS approach #1: Add transform and opacity properties to details[open]>.header__icon--menu .icon-hamburger in base.css to hide the hamburger icon when menu is open
  • CSS approach #2: Use display: none targeting the menu-opening SVG element in base.css
  • HTML modification: Edit header.liquid to restructure the hamburger and close button into separate container elements, wrapping them in distinct <div> or <span> tags

Current Status:

The first CSS solution caused unintended side effects, hiding other SVG elements like menu folder arrows. The issue remains unresolved, with at least one other user reporting the same problem.

Summarized with AI on November 16. AI used: claude-sonnet-4-5-20250929.

This is mobile view. I changed my hamburger icon succesfully like ‘screenshot1’. But, when I opened menu, the hamburger menu is still showing on close button. Could you please give me a hand to fix it?

url : https://104e35-2.myshopify.com/


(screenshot1)


(screenshot2)

Try adding this code to base.css and let me know if it works:

details[open]>.header__icon--menu .icon-hamburger {
    visibility: hidden;
    opacity: 0;
    transform: scale(.8);
}

It’s saying that if the menu is open, to hide the hamburger icon.

Hello @loolakoola ,

Add this css at the bottom of base.css

.menu-opening svg {
    display: none;
}

Thanks

Hello @loolakoola ,

You can try to follow these steps:


  
  

Hope this can help.

Ali Reviews team.

But this code aslo hide every svg in menu folder like arrow.

im having this issue too