Archived topic
Back-to-Top Button with Elementor
5 replies · Started by Rick on November 21, 2021
In the past, I have used the code on this page to change the timing of the Back-to-Top button. However, this functionality does not work with the Elementor plugin. Any suggestions on how to change the timing using Elementor?
My test page is confidential, but I can refer you by email.
Thanks!
-Rick
Hi there,
Not sure if I fully understand.
Is the back to top button is coming from GeneratePress?
You can use the private info field to provide the site URL if needed:
https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
Let me know :)
Yes, this is the standard Back-to-Top button that is part of GeneratePress PRO. When enabled, it appears by default in the lower right of the screen when you scroll down the page. Here is the demo page with the Back-to-Top button enabled.
That's actually an option in the free theme.
So you are saying that this filter doesn't work with Elementor activated?
https://docs.generatepress.com/article/back-to-top-button/#change-how-fast-it-scrolls-you-to-the-top
I can't see why Elementor would cause an issue like this - can you check with their support team first?
Yes, that's correct. The filter does not work with Elementor. With this setting in the function:
return 1; // milliseconds
there's no change from the default. Will this filter work in a GeneratePress Element?
Thanks!
Just to make sure, does returning 1 works without Elementor?
That is fast :)
This isn't an element or non-element issue.
The filter code needs to be added with one of these methods:
Adding PHP: https://docs.generatepress.com/article/adding-php/