Tagged: 

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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,
    Jiri

    #1190036

    Hi 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,
    Yigit

    #1190091

    Thank you, I recognized, that it is caused by Elementor and it affects only pages build with Elementor.

    #1190095

    Can 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.
    #1190430

    Hi,

    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.
    #1190888

    Thank 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.
    #1190896

    Hi 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,
    Yigit

    #1190932

    I will try, but there is no support for Elementor.

    #1190933

    I implemented this code, but the burger menu is not able to be closed after that. So I have to roll back this change.

    #1192290

    Hi,

    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

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