• Hello,

    I used the plugin and it’s a good one. I modified the plugin and set it in such a way so that it can scroll a div instead of scrolling the whole page. The div was set to a fixed height of 500px and overflow set to auto so that it can scroll. I implemented the menu from WordPress custom menu on the left side.

    You can see the live example here-
    https://dev.lawrencemontessorischool.com/about/

    The navigation is working fine but only for the first time. If I click the same menu item again or click another item it takes me to some wrong position of the page. What could be the reason? Please help me to fix the issue.

    Thanks!

    https://www.ads-software.com/plugins/page-scroll-to-id/

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

    (@malihu)

    You probably also need to modify offset().top values to position().top

    Thread Starter aniskhan001

    (@aniskhan001)

    He, thanks for your reply. I just changed offset().top to position().top, but it’s still not working fine. What other reason could be?

    It would be really helpful if you can help me fix this issue ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Navigation not working correctly’ is closed to new replies.