Using dawn theme, the menu doesn’t work on mobile. It seems to open a grey box, but nothjing else, it works fine on desktop.
I’ve read other posts and checked text colour etc, but nothing seems to work.
Any advice much appreciated.
I’m okay messign with code, but please give clear instruction. Need all the help i can get, but i’m not the brightest button! LOL!
Thank you
Thank you for your reply. I’m glad to hear that the solution worked well for you. If you require any more help, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.
To get the collaborator code, you’ll have to go into your Shopify Settings > Users > Security > Copy the 4 digit code. Click on my profile and you’ll see an option to send a private message.
go to Theme settings, Colors, and temporarily switch the header color scheme to something high contrast like the default light scheme. Save, refresh on your phone, tap the menu again. If the menu suddenly shows up, you’ve basically confirmed it’s just a color scheme issue, meaning your menu text is likely the same color as the drawer background.
If changing the color scheme doesn’t fix it, then it’s usually a CSS or JS tweak that broke the drawer layering.
Go to Online Store, Themes, Edit code, open assets base.css and scroll to the very bottom and paste this:
It’s a frequent problem with broken page HTML.
Your layout file should start with:
Instead it has this:
<head>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-TPHKV29S');</script>
<!-- End Google Tag Manager -->
<meta charset="utf-8">
When someone was adding GTM tag, the top 2 lines were removed.
Dawn theme requires no-js class (which is then replaced by js – kinda test to see if Javascript is enabled) on the <html> element for some CSS to work properly.
People tend to recommend fixing the symptom with more CSS, not the cause.
Fix this and do not meddle with other code (and undo whatever CSS “fixes” were added).
If it’s broken beyond easy repair, just restore from the previous theme copy.