-
nick7766
Good morning, dear GP support,
A customer has just informed us that the “fast scrollback” function (I don’t know exactly what it’s called in technical terms) isn’t working properly for us.
If you click on it, it scrolls up very slowly.
See the test page here: https://www.hello-world.net/camino-primitivo/
See Vid here: https://immarketingforum-my.sharepoint.com/:v:/g/personal/marcuz_hello-world_net/EbPUtwZU_jBMlsNtUhQBlAMB6Ndu_YeqhigqOe_UdfSOvQ?nav=eyJyZWZlcnJhbEluZm8iOnsicmVmZXJyYWxBcHAiOiJPbmVEcml2ZUZvckJ1c2luZXNzIiwicmVmZXJyYWxBcHBQbGF0Zm9ybSI6IldlYiIsInJlZmVycmFsTW9kZSI6InZpZXciLCJyZWZlcnJhbFZpZXciOiJNeUZpbGVzTGlua0NvcHkifX0&e=PY9pKzCaching (WP Rocket) has already been deactivated, but the behavior hasn’t changed.
Thank you very much for a quick response to solve the problem.
Best regards from Germany
Nico -
Hi there,
looks like you’re using Elementor on the site, and to the best of my knowledge they plugin adds its own Smooth Scroll which will conflict with the GB Back to Top and Smooth scroll options.
Can you check with Elementor if it’s possible to disable their smooth scrolling ?
-
nick7766
Hello David,
Thank you very much for your feedback. I just looked at our Elementor settings. However, there is no option for smooth scrolling 🙁 -
Elementor adds the CSS smooth-scroll to HTML, if you do not know how to disable it, you can use the below PHP code to remove GP smooth-scroll 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/
-
nick7766
Good morning David, good morning Ying,
we have now contacted Elementor’s technical support. They will be looking at the problem more closely on our staging site in the next few days.
As soon as I know more, I will let you know.
Thank you very much for now.
Nico
-
nick7766
Hi David, hi Ying,
We have just received feedback from Elemetor technical support TIR1 (see screenshot attached).
We are now a bit confused as we have not installed a separate scroll widget.
-
They completely missed the question lol
The question was whether in Elementor you a disable their Smooth Scroll scripts… which would stop the conflict. I will assume its still isn’t possible to disable that codeBut let’s not waste time, instead try adding the PHP Snippet that Ying provided.
Let us know,.
-
nick7766
Good morning David,
I have sent another request to Elementor. Information will follow, of course.
Best regards
Nick -
nick7766
Hi David,
We have now asked Elementor again. The response came promptly.
Can you help us with the necessary information?
Thank you in advance.
Nico
-
Ok… my apologies, let’s stop the back and forth conversation with Elementor. I can only assume that they still do not provide an option to disable their smooth scrolling script. And lets be honest; they should know where their scripts are loading.
So instead we have to disable the GP one to stop the two from conflicting.
Can you add the script that Ying provided here:
https://generate.support/topic/fast-scrollback-doesnt-work/#post-139134
And then let us know.
-
nick7766
Good morning David,
OK, I understand. But I’m always interested in the cause and background. I wouldn’t want to just stick a CSS snippet on it and not understand the real cause. I’m a bit of a “monk” in that regard.
What should I write to Elementor Support now?
-
Alvind
Hi there,
The real issue is a conflict between the smooth scroll functions in GP Smooth Scroll and Elementor Smooth Scroll. You have two options: either disable GP Smooth Scroll or Elementor Smooth Scroll. Since disabling Elementor’s can be cumbersome (as their support isn’t particularly helpful with this), our solution would be to disable GP Smooth Scroll using a snippet and rely on Elementor’s smooth scroll.
If you’d still like to pursue it with Elementor, you could ask them for a method to disable the smooth scroll script in Elementor, though they may not provide a straightforward solution.
-
nick7766
Good morning Alvind,
Thank you very much for your feedback. I’ll try to resolve the issue with Elementor Support.
One more question:
You can see on the following page that it is also affected by the smooth scroll effect. However, this page is a pure GP page.
See here: https://www.hello-world.net/jakobsweg/
Is this also related to the GP/Elementor smooth scroll conflict?
Best regards
Nico -
Alvind
Even if no Elementor elements are used on the current page, their JavaScript still loads on the frontend, which is why the issue persists.
-
nick7766
Ok, I understand. Thnx Alvind. I think we can close the ticket now.
-
nick7766
Alvind, I just tried to implement Ying’s script. But it doesn’t work.
Could there be an error in the script?
//remove GP smooth scroll from back to top button
add_filter( ‘generate_back_to_top_js_args’, function( $args ) {
$args[‘smooth’] = false;return $args;
} );
- You must be logged in to reply to this topic.