Support » Plugin: Page scroll to id » TwentyTwentyOne – mobile offset not working for mobile navigation

  • Resolved frauelbe

    (@frauelbe)


    Hi Malihu,

    I’m using your awesome plugin on many pages, but now I have trouble with Twenty Twenty One.

    The page is using anchor navigation and has a sticky header. Your plugin is working like a charm except to the navigation on mobile devices. I set offset for mobile devices, as you described in your tutorial. The mobile offset is working properly for button links, but it is not working when you click a menu item on the mobile menu. Something from the TwentyTwenty One theme is blocking the offset. This results in overlapping my content by the sticky menu.
    What can I do to stop this? Could you please provide me a solution? Can I remove something in the theme script or add a snippet?

    Thank you for your awesome support and this great plugin!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author malihu

    (@malihu)

    Hello,

    Can you post your age/site URL so can check what happens and help?

    Thread Starter frauelbe

    (@frauelbe)

    Thank you for your fast response. Here is the link:

    https://brzofsuw.myraidbox.de

    Thread Starter frauelbe

    (@frauelbe)

    I also noticed, the mobile offset is working properly, when you navigate to a home anchor from another page. For example, when you are on https://brzofsuw.myraidbox.de/impressum/ using the mobile menu to go to an anchor on Homepage, the offset is working properly.

    Only when you are navigating on the homepage itself, the mobile offset is not working.

    This issue is only on mobile.

    Plugin Author malihu

    (@malihu)

    I think you need to reset your mobile menu CSS, which for some reason, locks page scrolling when opened. Add the following to your custom/additional CSS:

    .lock-scrolling .site{
        position: static !important;
        max-width: none !important;
        width: auto !important;
    }

    Test and let me know

    Thread Starter frauelbe

    (@frauelbe)

    Thank you so much for your superb support. This solved my issue.

    Have a great weekend!

    Plugin Author malihu

    (@malihu)

    You’re welcome 🙂
    Thanks a lot for your donation and support!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘TwentyTwentyOne – mobile offset not working for mobile navigation’ is closed to new replies.