Mobile Menu Not Opening: JavaScript and CSS Troubleshooting
Hamburger menus fail because of script errors, missing files or conflicting CSS.
Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
Check
- Open the console on a mobile-size window. Look for red errors. See reading the browser console.
- Is the script file loading (200 status)?
- Does the button's selector match the JavaScript's?
- Does CSS hide the menu with
display: noneand never switch it? - Is a sticky header or overlay covering the button, blocking clicks?
- In WordPress, a plugin conflict or minify setting may break it. See finding a plugin conflict.
Test on a real phone, since emulators miss some touch behavior.
Related guides
- WPForms or Gravity Forms Entries Not Saving
- WordPress Shows the Wrong Time or Publishes at the Wrong Time
- Where to Add Custom CSS or Code in WordPress Without Losing It After Updates
- "The Uploaded File Exceeds the upload_max_filesize" in WordPress: Fix
Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.