What's your biggest current challenge? Have your say in Community Polls along the right column.

hamburger button error on mobile (Dawn Theme)

Solved

hamburger button error on mobile (Dawn Theme)

loolakoola
Excursionist
63 0 7

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/

 

loolakoola_0-1684720152061.png (screenshot1)

 

loolakoola_1-1684720162401.png (screenshot2)

Accepted Solutions (2)

Guleria
Shopify Partner
3698 741 1039

This is an accepted solution.

Hello @loolakoola ,

 

Add this css at the bottom of base.css

.menu-opening svg {
    display: none;
}

 

Thanks

- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder

View solution in original post

AliReviews
Shopify Partner
773 90 358

This is an accepted solution.

Hello @loolakoola ,

 

You can try to follow these steps:

  • Go to Online Store -> Themes -> Actions -> Edit code 
  • Go to Sections folder -> header.liquid 
  • Find the HTML code for the hamburger menu: Inside the header file, locate the HTML code that generates the hamburger menu icon. It could be an <a> or <button> element with a specific class or ID that triggers the menu opening and closing.
  • Modify the HTML structure: Wrap the hamburger menu icon and the close button in separate container elements, such as <div> or <span>. Here's an example of how the modified HTML structure could look:
<div class="hamburger-menu">
  <button class="hamburger-icon" aria-expanded="false" aria-controls="menu">
    <!-- Add your hamburger icon HTML code here -->
  </button>
  <button class="close-icon" aria-expanded="true" aria-controls="menu">
    <!-- Add your close button HTML code here -->
  </button>
</div>

 

Hope this can help.

Ali Reviews team.

- Was my answer helpful? Please hit Like or Mark it as solution!
- Ali Reviews - The must-have Shopify app that empowers you to effortlessly collect, display, and manage product reviews.
- Start your FREE trial today!

View solution in original post

Replies 5 (5)

Zqdo
Shopify Partner
803 32 64

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.

banned

Guleria
Shopify Partner
3698 741 1039

This is an accepted solution.

Hello @loolakoola ,

 

Add this css at the bottom of base.css

.menu-opening svg {
    display: none;
}

 

Thanks

- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder
loolakoola
Excursionist
63 0 7

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

queenjuni
New Member
8 0 0

im having this issue too

AliReviews
Shopify Partner
773 90 358

This is an accepted solution.

Hello @loolakoola ,

 

You can try to follow these steps:

  • Go to Online Store -> Themes -> Actions -> Edit code 
  • Go to Sections folder -> header.liquid 
  • Find the HTML code for the hamburger menu: Inside the header file, locate the HTML code that generates the hamburger menu icon. It could be an <a> or <button> element with a specific class or ID that triggers the menu opening and closing.
  • Modify the HTML structure: Wrap the hamburger menu icon and the close button in separate container elements, such as <div> or <span>. Here's an example of how the modified HTML structure could look:
<div class="hamburger-menu">
  <button class="hamburger-icon" aria-expanded="false" aria-controls="menu">
    <!-- Add your hamburger icon HTML code here -->
  </button>
  <button class="close-icon" aria-expanded="true" aria-controls="menu">
    <!-- Add your close button HTML code here -->
  </button>
</div>

 

Hope this can help.

Ali Reviews team.

- Was my answer helpful? Please hit Like or Mark it as solution!
- Ali Reviews - The must-have Shopify app that empowers you to effortlessly collect, display, and manage product reviews.
- Start your FREE trial today!