Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Issue with Back to Top Button Performance

  • Hi,

    I’ve noticed that the “Back to Top” button on my website is functioning very slowly. When clicked, it takes approximately 2 to 3 minutes to scroll back to the top of the page. This significantly affects the user experience.

    Could you please look into this and suggest a solution to improve its responsiveness?

    Best regards,

  • Hi there,

    Elementor adds CSS to set the site’s scroll behaviour to smooth, which is conflicting with GP’s smooth scroll function.

    Try adding this PHP to remove the GP smooth-scroll function from the back-to-top button.

    //remove GP smooth scroll from back to top button 
    add_filter( 'generate_back_to_top_js_args', function( $args ) {
        $args['smooth'] = false;
    
        return $args;
    } );

    Adding PHP: https://docs.generatepress.com/article/adding-php/

  • No Problem 🙂

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