Tagged: smooth scroll
-
AuthorPosts
-
March 4, 2020 at 12:24 pm #1190010
I am using internal links, it works nice, but there is incorrect shift after first scroll. How can I turn it off please?
For example on this link https://ucimekvalitne.cz/2020/#recnici the title od the section should be visible.Thank you,
JiriMarch 4, 2020 at 12:55 pm #1190036Hi Jiri,
Thanks for contacting us!
I believe that incorrect shift is related to one of the plugins you are using. Could you please try de-activating all active plugins and check if that helps?
Best regards,
YigitMarch 4, 2020 at 2:59 pm #1190091March 4, 2020 at 3:10 pm #1190095Can I disable Enfold smooth scrolling somehow, when it is managed by Elementor?
As I expected, it is not possible turn off the smooth scroll function in Elementor [CITE].
My problem is probably caused by conficting both of Elementor and Enfold scripts.- This reply was modified 4 years, 8 months ago by norbou.
March 5, 2020 at 2:04 pm #1190430Hi,
I too think so. Please try following:
– Copy /enfold/js/avia.js file to your child theme inside /js/ folder
– Open avia.js file on your child theme and find following//smooth scrooling if($.fn.avia_smoothscroll) $('a[href*="#"]', container).avia_smoothscroll(container);
and comment the lines as following
//smooth scrooling //if($.fn.avia_smoothscroll) //$('a[href*="#"]', container).avia_smoothscroll(container);
– Add following code to bottom of functions.php file of your child theme
function wp_change_aviajs() { wp_dequeue_script( 'avia-default' ); wp_enqueue_script( 'avia-default-child', get_stylesheet_directory_uri().'/js/avia.js', array('jquery'), 2, true ); } add_action( 'wp_print_scripts', 'wp_change_aviajs', 100 );
Best regards,
Yigit- This reply was modified 4 years, 8 months ago by Yigit.
March 6, 2020 at 3:09 pm #1190888Thank you Yigit. Awesome! It works well. It is good to know how to manage it and have only one solution on my site. BUT!
It is not a solution of my problem. Elementor’s smooth scroll ignores Enfold’s sticky header and I don’t know how to add the offset in their script or set the offset using Enfold’s smooth scroll.Thank you
Jiri- This reply was modified 4 years, 8 months ago by norbou.
March 6, 2020 at 3:23 pm #1190896Hi Jiri,
Could you please contact their team and ask for pointers on how to add Enfold’s sticky header in their smooth scroll function or how to disable their smooth scroll?
Best regards,
YigitMarch 6, 2020 at 5:33 pm #1190932I will try, but there is no support for Elementor.
March 6, 2020 at 5:34 pm #1190933I implemented this code, but the burger menu is not able to be closed after that. So I have to roll back this change.
March 11, 2020 at 2:32 pm #1192290Hi,
Sorry for the late reply!
This is the only post I could find – https://wordpress.org/support/topic/scroll-effects-conflicts-with-elementor-scrolling/#post-10602349. It requires changes on Elementor files. I am not aware if there are any alternatives though.
Best regards,
Yigit -
AuthorPosts
- You must be logged in to reply to this topic.