• Resolved lorenz23

    (@lorenz23)


    Hi, i’ve a strage problem: The scrolling effect works well and smooth in the Elementor Editor, but when I try it from the official link of the website the scrolling is not good, linear (no increasing speed effect) and a bit lagging. Could you help me please?

    • This topic was modified 5 years, 4 months ago by lorenz23.
Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author malihu

    (@malihu)

    Hi,

    I can’t really help unless I see your page. Make sure you’ve enabled “Prevent other scripts from handling plugin’s links” option in plugin settings. If you can send me your site/page URL I’d probably be able to help.

    Thread Starter lorenz23

    (@lorenz23)

    Yes, sure:
    https://zannabiancaambulatoriovr.altervista.org

    Try to click on “Bio” menu link, the other links is not setted yet.

    • This reply was modified 5 years, 4 months ago by lorenz23.
    Plugin Author malihu

    (@malihu)

    There’s other scripts trying to scroll the page (in addition to page scroll to id). Try this:

    Go to plugin settings and remove the value you’ve set in “Highlight selector(s)” option. Save changes and let me know so I can check it.

    Thread Starter lorenz23

    (@lorenz23)

    Value removed, highlight selector now is space.

    Plugin Author malihu

    (@malihu)

    There’s another script in your theme that also scrolls the page:

    wp-content/themes/nt-honshi/js/scripts.js

    I think that this script conflicts with “Page scroll to id” because they both try to do the same thing. Is there a way to disable your theme’s smooth scrolling feature?

    Thread Starter lorenz23

    (@lorenz23)

    Unfortunately I don’t see any options to disable smooth scroll in the theme option. is it possibile to disable it manually, modifying the scripts.js?

    Plugin Author malihu

    (@malihu)

    Try this:

    Edit scripts.js and comment out the lines from 229 to 245, i.e. change this:

    var scroll = new SmoothScroll('a[href*="#"]', {
        // Selectors
        topOnEmptyHash: true, // Scroll to the top of the page for links with href="#"
        // Speed & Duration
        speed: 800, // Integer. Amount of time in milliseconds it should take to scroll 1000px
        speedAsDuration: false, // If true, use speed as the total duration of the scroll animation
        durationMax: null, // Integer. The maximum amount of time the scroll animation should take
        durationMin: null, // Integer. The minimum amount of time the scroll animation should take
        clip: true, // If true, adjust scroll distance to prevent abrupt stops near the bottom of the page
        offset: navcustomoffset,
        easing: 'easeInOutCubic',
        // History
        updateURL: true, // Update the URL on scroll
        popstate: true, // Animate scrolling with the forward/backward browser buttons (requires updateURL to be true)
        // Custom Events
        emitEvents: true // Emit custom events
    });

    to:

    /* var scroll = new SmoothScroll('a[href*="#"]', {
        // Selectors
        topOnEmptyHash: true, // Scroll to the top of the page for links with href="#"
        // Speed & Duration
        speed: 800, // Integer. Amount of time in milliseconds it should take to scroll 1000px
        speedAsDuration: false, // If true, use speed as the total duration of the scroll animation
        durationMax: null, // Integer. The maximum amount of time the scroll animation should take
        durationMin: null, // Integer. The minimum amount of time the scroll animation should take
        clip: true, // If true, adjust scroll distance to prevent abrupt stops near the bottom of the page
        offset: navcustomoffset,
        easing: 'easeInOutCubic',
        // History
        updateURL: true, // Update the URL on scroll
        popstate: true, // Animate scrolling with the forward/backward browser buttons (requires updateURL to be true)
        // Custom Events
        emitEvents: true // Emit custom events
    }); */

    Let me know

    Thread Starter lorenz23

    (@lorenz23)

    I commented the lines but I don’t see changes in the scroll effect

    Plugin Author malihu

    (@malihu)

    The changes you made do not seem to be applied in the frontend (when I inspect the script, the code is not commented). Maybe you need to clear cache?

    Thread Starter lorenz23

    (@lorenz23)

    Cache cleared, but still don’t working well.

    Plugin Author malihu

    (@malihu)

    Ok. In plugin settings change “Scroll type/easing” option to easeInOutQuint and let me know.

    Thread Starter lorenz23

    (@lorenz23)

    Changed setting and cleared the cache..no improvement πŸ™
    I notice that now, in the Elementor Editor, clicking the “bio” link there isn’t any type of scroll, like the link is inactive.

    • This reply was modified 5 years, 4 months ago by lorenz23.
    Plugin Author malihu

    (@malihu)

    Yes. Try the following and let me know:

    Edit ...wp-content/themes/nt-honshi/js/plugins.js

    and comment out line 12 (it’s a single big line).

    Save the file and let me know.

    Plugin Author malihu

    (@malihu)

    Also, on the same file (plugins.js) try commenting out the lines from 118 to 124 (the jQuery Easing plugin).

    Thread Starter lorenz23

    (@lorenz23)

    I commented line 12 and from 118 to 124 and now it’s visibile the effect (slow start and increasing speed) but still lagging. Maybe near the solution… πŸ™‚

Viewing 15 replies - 1 through 15 (of 17 total)

The topic ‘No Smooth Scrolling Elementor’ is closed to new replies.