Smooth Scroll Stopped Working

  • I use GeneratePress, and I have added the code:
    //remove GP smooth scroll from back to top button
    add_filter( ‘generate_back_to_top_js_args’, function( $args ) {
    $args[‘smooth’] = false;
    return $args;
    } );
    This was working fine, and now it is moving very, very slowly. I deactivated all plugins besides Elementor Pro and GeneratePress Pro. Still does not work correctly.

  • Hi there,

    The code should still work.

    How did you add the code? Is there any other custom PHP code on your site?

  • Added to the child theme files and that is the only php added. Code is still there but stopped working. I tried deleting and readding also.

  • I just tested the code, and it’s still working fine.

    Can you share your admin login?

  • See below

  • You’ve added the code the style.css file…
    It should’ve been added to the functions.php file.

  • Thank you! It is a very Monday Tuesday.

  • You are welcome   🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.