Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #613250

    Hi there! i installed WordPress 4.5 and Enfold 3.5.2 including the latest avia.js from https://gist.github.com/Kriesi/99a2a977b93c0f1bced99f093c82c7ba.
    Before the update the issue in this (https://kriesi.at/support/topic/smooth-scrolling-2/) topic was fixed but now this fix stops the images and effects from loading on all pages.
    Original avia.js (line 89)
    if($.fn.avia_smoothscroll)
    $(‘a[href*=”#”]’, container).avia_smoothscroll(container);
    Replaced with:
    if($.fn.avia_smoothscroll)
    $(‘a[href*=#]’, container).not(‘.wpts_li_a’).avia_smoothscroll(container);
    Is there a workaround so the fix from topic https://kriesi.at/support/topic/smooth-scrolling-2 still works?

    #613552

    Hey Reisfreaks,

    Could you try adding the following to your functions.php to see if that helps?

    function modify_jquery() {
    if (!is_admin()) {
    	wp_deregister_script('jquery');
    	wp_register_script('jquery', 'https://code.jquery.com/jquery-1.11.3.min.js');
    	wp_enqueue_script('jquery');
    }
    }
    add_action('init', 'modify_jquery');

    Thanks,
    Rikard

    #614193

    Hi Rikard! With jquery 1.12.3 it doesn’t work but your solution with 1.11.3 works great! Thanks for the fast response!!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Smooth scrolling’ is closed to new replies.