Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. Bug Reports
  3. Anchor links in mobile menu don’t scroll to section on mobile

Anchor links in mobile menu don’t scroll to section on mobile

Scheduled Pinned Locked Moved Bug Reports
6 Posts 2 Posters 514 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D
    D
    DBronx
    wrote on last edited by
    #1

    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=0

    Staging 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!

    1 Reply Last reply
    0
    • arminunruhA
      arminunruhA
      arminunruh
      Global Moderator
      wrote on last edited by
      #2

      seems like lay theme expects #over or https://staging.studiobronx.be/#over

      and /#over doesnt work

      will be fixed with the next update

      D 1 Reply Last reply
      0
      • arminunruhA arminunruh

        seems like lay theme expects #over or https://staging.studiobronx.be/#over

        and /#over doesnt work

        will be fixed with the next update

        D
        D
        DBronx
        wrote on last edited by
        #3

        Thanks for checking.

        Just to clarify: the issue still persists on my setup, even when using full URLs. The mobile menu closes, but the page does not scroll to the anchor correctly.

        I’ll leave the topic open for now and wait for the next update regarding the /#anchor fix.

        Thanks!

        1 Reply Last reply
        0
        • arminunruhA
          arminunruhA
          arminunruh
          Global Moderator
          wrote on last edited by
          #4

          ok i understand, ok i will check it out

          D 1 Reply Last reply
          0
          • arminunruhA arminunruh

            ok i understand, ok i will check it out

            D
            D
            DBronx
            wrote on last edited by
            #5

            @arminunruh
            I found the issue.

            The anchor IDs were present in the desktop layout, but I had forgotten to assign them to the corresponding elements in the mobile layout. Since Lay Theme uses separate desktop and mobile layouts, the mobile page simply had no matching anchor targets.

            My bad!

            After adding the IDs to the mobile layout, the navigation works correctly.

            Thanks for taking the time to look into it!

            1 Reply Last reply
            0
            • arminunruhA
              arminunruhA
              arminunruh
              Global Moderator
              wrote on last edited by
              #6

              ah thats great!! yes, when you use the custom phone layout, you need the id's there too

              Ok, have a great day!

              1 Reply Last reply
              0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              Online Users
              K
              kp-hb
              Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
              laytheme.com
              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Recent
              • Tags
              • Popular
              • Users
              • Search