Anchor links not working properly after theme update

Theme - Betheme Version: 27.1.1

Problems:

1) When click on a direct link anchor - scrolls to section with id not work (solved the problem by adding the code to the file function.php)

add_action( 'wp_enqueue_scripts', 'load_old_jquery_fix', 100 );

function load_old_jquery_fix() {
    if ( ! is_admin() ) {
        wp_deregister_script( 'jquery' );
        wp_register_script( 'jquery', ( "//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js" ), false, '1.11.3' );
        wp_enqueue_script( 'jquery' );
    }
}

error in browser console


2) When click on a direct link anchor - scrolls to the top of the page through 2-3 seconds (only mobile version)

links for example:


Comments

Sign In or Register to comment.