Happening now | Office Hours: Customizing Your Theme with Moeed | Ask all your theme customization questions now!

Re: Unable to close the hamburger header menu in mobile site

Solved

Unable to close the hamburger header menu in mobile site

aaskretail
Excursionist
13 2 3

Hi All,

 

I am unable to close the header menu in the mobile site or minimized browser setting. Clicking on X would do nothing. Thanks in advance.

 

URL: irsyaofficial.com

 

menu.PNG

AASK
Accepted Solution (1)
aaskretail
Excursionist
13 2 3

This is an accepted solution.

The issue was due to a custom code for collapsible content in Global.js file. Removed it and this got fixed.

AASK

View solution in original post

Replies 7 (7)

webwondersco
Shopify Partner
1200 171 174

@aaskretail hope you are doing well.

 

did you add any app or additional js in your theme? or have you made any changes the theme js?

Web Wonders | Shopify Partner | Connect here!
- Question answered? Mark as Accepted Solution, reply helpful? Click Like
- Hire me, if you want to design, re-design, develop a store, or make changes to the pre-built store.
- a small Coffee Tip would be greatly appreciated. :)..! Instagram
aaskretail
Excursionist
13 2 3

Hello,

 

No, I did not add any additional app or js. I have added a few styles  to theme.liquid and earlier had added a script in header.liquid file to open the dropdown menu on hover but removed that because it was behaving the same way.

AASK
webwondersco
Shopify Partner
1200 171 174

@aaskretail , it looks like some JS conflicts with your menu js. Once it opens then it'll not toggle back to close property. if we click again on close icon it'll add the class-related open instead of adding a close class.

Web Wonders | Shopify Partner | Connect here!
- Question answered? Mark as Accepted Solution, reply helpful? Click Like
- Hire me, if you want to design, re-design, develop a store, or make changes to the pre-built store.
- a small Coffee Tip would be greatly appreciated. :)..! Instagram
aaskretail
Excursionist
13 2 3

Yes, do you know any way to fix this  by adding a line of script to the file ?

AASK
webwondersco
Shopify Partner
1200 171 174

@aaskretail for that first, need to identify the theme js file and then can able to find the solution for that.

Web Wonders | Shopify Partner | Connect here!
- Question answered? Mark as Accepted Solution, reply helpful? Click Like
- Hire me, if you want to design, re-design, develop a store, or make changes to the pre-built store.
- a small Coffee Tip would be greatly appreciated. :)..! Instagram
aaskretail
Excursionist
13 2 3

Hi,

 

Can you help me identify the which .js file is being used ? I am on Dawn Theme

 

Store URL: irsyaofficial.com

password: intusk

it is focusing on the "open" in below code in the website when clicking on cross button. It should toggle to close.

 

aaskretail_0-1706530169273.png

 

AASK
aaskretail
Excursionist
13 2 3

This is an accepted solution.

The issue was due to a custom code for collapsible content in Global.js file. Removed it and this got fixed.

AASK