• Im trying to load the latest version of jQuery (1.8.3) inside my theme. I`ve tried a few things including both of the following inside my themes header.php as follows:

    wp_enqueue_script('jquery','//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js', true);

    Also tried to de-register jquery and register with new one as follows:

    wp_deregister_script('jquery');
    wp_register_script('jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js', true);

    And finally tried putting the following into functions.php :

    function my_enqueue_scripts() {
    	wp_deregister_script('jquery');
    	wp_register_script('jquery','https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js');
    	wp_enqueue_script('jquery');
    }
    
    add_action('wp_enqueue_scripts', 'my_enqueue_scripts');

    But no joy whatsoever so far.. Any help appreciated!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Knipple,

    Try this

    wp_register_script ('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js', array(), '1.8.3', true);

    Thread Starter Knipple

    (@knipple)

    Hi Prasath,

    Unfortunately that isnt working. Im checking which script is loading via Firebug and when i use enqueue etc it changes the order that jQuery loads but keeps loading 1.6.4 …

    [No bumping. If it’s that urgent, consider hiring someone.]

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Load newer JQuery version..’ is closed to new replies.