• The plugin seems to be working on all my other pages, but on this page (Fact Sheet) the target point lands mid-page. It works fine when you are within the page, but when scrolling from a different page it is in the middle.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author malihu

    (@malihu)

    Hello,

    There seems to be another script in your theme that hijacks scrolling to page anchors and prevents “Page scroll to id” from doing its thing. The script file that does this is this one:

    ...themes/jupiter/assets/js/min/full-scripts.6.9.0.js

    Check in your theme settings if there’s any option to disable page smooth scrolling (so you can use “Page scroll to id” properly).

    If no such option exists, you’ll need to manually edit the js file above (full-scripts.6.9.0.js) and make few modifications:

    1)Find the lines:

    $(document).on("click", ".js-smooth-scroll, .js-main-nav a", smoothScrollToAnchor),
    $(".side_dashboard_menu a").on("click", smoothScrollToAnchor)

    and change them to:

    /* $(document).on("click", ".js-smooth-scroll, .js-main-nav a", smoothScrollToAnchor),
    $(".side_dashboard_menu a").on("click", smoothScrollToAnchor) */

    2)Find the line (few lines above the previous ones):

    MK.utils.scrollToURLHash(),

    and change it to:

    //MK.utils.scrollToURLHash(),

    Save the file and test.

    Let me know

Viewing 1 replies (of 1 total)
  • The topic ‘Scrolling target is midscreen’ is closed to new replies.