Forum Replies Created

Viewing 1 replies (of 1 total)
  • I just managed to get this working, here’s how –
    It must be the old version of jquery that twenty twelve calls that is causing the problem, so if you put this in your functions.php in your child theme it works!

    add_action('wp_enqueue_scripts', 'no_more_jquery');
    function no_more_jquery(){
        wp_deregister_script('jquery');
        wp_register_script('jquery', "http" .
        ($_SERVER['SERVER_PORT'] == 443 ? "s" : "") .
        "://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js", false, null);
        wp_enqueue_script('jquery');
    }

    if this is the first item in your child functions.php then put

    <?php

    before it, and

    ?>

    after it.
    This strips out the old jquery (‘no_more_jquery’) and adds in google’s newer one (ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js)

    I got this info from here just fyi

Viewing 1 replies (of 1 total)