Anchor links in mobile menu don’t scroll to section on mobile
-
Hi,
I’m running into an issue with anchor links in the mobile menu.
Setup
- Latest Lay Theme
- Homepage has Cover enabled
- Mobile menu contains custom links:
- /#projecten
- /#over
- /#contact
- Corresponding sections have IDs:
- projecten
- over
- contact
Expected behaviour
When tapping a menu item, the mobile menu closes and the page scrolls to the corresponding anchor.Actual behaviour
- The URL updates correctly (e.g. /#over)
- The mobile menu closes visually
- The page does not scroll to the anchor
- The overlay/menu state seems to remain active
- Desktop navigation works correctly
Additional notes
- Tested with both relative URLs (/#over) and absolute URLs
- Anchor Scroll is enabled in Lay Options
- IDs are correctly assigned to the target rows
- The issue only occurs on mobile
- All custom snippets and Custom Code is currently turned off
- Tested on Safari and Chrome (Version 149.0.7827.156)
20 seconden screen recording:
https://www.dropbox.com/scl/fi/geertfkxnwceomnlgijhp/ScreenRecording_06-24-2026-11-11-08_1.MP4?rlkey=kzg0pb3ibmyvm8msynbig3gwl&dl=0Staging URL
https://staging.studiobronx.be/Feel free to inspect the staging site directly.
Could this be related to the mobile menu overlay state or cover-enabled pages?
Thanks!
-
seems like lay theme expects #over or https://staging.studiobronx.be/#over
and /#over doesnt work
will be fixed with the next update
For paid 1-on-1 Lay Theme Coaching, contact Audrey (audrey@cyberslayers.work) or me (info@laytheme.com).
We also code custom websites or bespoke Lay features. Drop me a line at info@laytheme.com or check out my work at arminunruh.com.
Want to support my work? paypal.me/arminunruh
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it