Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter BaharOtat

    (@baharotat)

    WP version: Sürüm 4.5.1

    Thread Starter BaharOtat

    (@baharotat)

    I added this code to the functions.php file in my theme, in order to use previous version of jQuery. worked like a charm ??

    //jQuery Insert From Google
    if (!is_admin()) add_action("wp_enqueue_scripts", "my_jquery_enqueue", 11);
    function my_jquery_enqueue() {
       wp_deregister_script('jquery');
       wp_register_script('jquery', "http" . ($_SERVER['SERVER_PORT'] == 443 ? "s" : "") .
            "://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js", false, null);
       wp_enqueue_script('jquery');
    }

    Thanks to kingkin

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Dont working after update…’ is closed to new replies.