Support » Plugin: OoohBoi Steroids for Elementor » native anchor links and disabling Elementor’s scroll handler for Locomotive

  • 1. anchor links should be left the way they always have been done so that if your plugin is disabled, they do what they used to do. your youtube video about this recommends altering them, and the instructions you gave no longer work. the proper way with locomotive now is to leave the anchor as is but add the data-scroll-to attribute like this: <a href="#whatever" data-scroll-to>whatever stuff</a>. i followed your example but it didn’t work.

    2. unfortunately, elementor doesn’t let us easily disable smooth-scroll. i wrote instructions on how to disable elementor’s smooth scroll programatically here. feel free to use this in your plugin.

    3. to make everything simpler, you can also use JS/jQuery to fix all anchor links in a few lines of code, unminified:

    jQuery( function ( $ ) {
    $( ‘a[href^=”#”]’ ).attr( ‘data-scroll-to’, true );
    } );`

  • The topic ‘native anchor links and disabling Elementor’s scroll handler for Locomotive’ is closed to new replies.