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

    (@malihu)

    Your theme (or some other plugin) adds a custom click event on the link text which prevents ‘Page scroll to id’ from scrolling the page.

    Try to see if this feature can be disabled (via some theme setting or by disabling a plugin).

    If there’s no setting for this, you’d need to manually add a js script like the one below in your theme’s template (e.g. in footer.php or header.php):

    <script>
    (function($){
        $(window).load(function(){
            console.log("d");
            $("a[rel='m_PageScroll2id'] span")[0].onclick = null;
        });
    })(jQuery);
    </script>
    Thread Starter thaimacky

    (@thaimacky)

    …must be the theme but couldn’t find anything to disable it. adding your suggested script to the footer.php worked. thks a lot!

    Plugin Author malihu

    (@malihu)

    You’re welcome ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘smooth scrolling only works coming from another page’ is closed to new replies.