-
ng123
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?
-
ng123
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?
-
ng123
See below
-
You’ve added the code the
style.cssfile…
It should’ve been added to thefunctions.phpfile. -
ng123
Thank you! It is a very Monday Tuesday.
-
You are welcome 🙂
- You must be logged in to reply to this topic.