My search and hamburger menu are not working properly on mobile. Upon reading some other community posts, it looks like some of the custom code that I added might have messed things up, but I’ve been adding some bits of code here and there for the past few months, so I can’t remember all the changes. Can someone please take a look to see if there’s a quick fix? Thank you!
1 Like
Sorry for facing these issue.
Welcome to shopify community.
Let me check your issue.
We will it.
Thank you
Please follow the steps:
- Step 1: Go to Online store > Themes > Actions > Edit code.
- Step 2: Go to Assets > theme.js and find “.site-nav__dropdown”, it will be at the end of the file. https://i.imgur.com/puJTe1z.png
This is CSS code so you can’t put it in JS file.
Hope it clear to you.
Thank you! Can you let me know what the solution is?
You put the code in the wrong file which is causing the issue. The code mentioned in the screenshot is in the Theme.js file, You need to remove this code from there. And paste it at the bottom of the theme.css file.
Do let me know if you can’t do it yourself.
Yes, it worked! Thank you so much for helping.
@StellaGold , You’re welcome.