• Plugin Author malihu

    (@malihu)


    The plugin does not work out-of-the-box with TwentyTwenty theme. You can see why in the original topic here:

    https://wordpress.org/support/topic/scrolling-not-working-5/

    The solution is to add an extra js script in TwentyTwenty child-theme. Edit the child-theme’s footer.php and add the following script in a new line, right before the closing body tag (</body>):

    <script>
      twentytwenty.smoothScroll = null;
    </script>

    This will disable TwentyTwenty smooth scrolling function and allow “Page scroll to id” to do its thing 😉

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

    (@malihu)

    The latest version of TwentyTwenty theme changed javascript smooth scrolling with the CSS scroll-behavior rule. To overcome this and have proper smooth scrolling animation with “Page scroll to id”, simply add the following in customizer “Additional CSS”:

    html{
      scroll-behavior: auto !important;
    }

    Please note that “Page scroll to id” version 1.6.7 will have this fixed, so you won’t have to do anything (no javascript or additional css).

    • This reply was modified 6 years, 3 months ago by malihu.
Viewing 1 replies (of 1 total)

The topic ‘Scrolling not working with TwentyTwenty theme’ is closed to new replies.