WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Control jQuery Version in wp_head (3 posts)

  1. foochuck
    Member
    Posted 3 years ago #

    Hello!

    How can I control which version of jQuery gets loaded into my wordpress header through 'wp_head();'?

    Currently it's loading 1.4.4 and I'm running a script that only works with 1.4.2.

    Thanks!

  2. How to include jQuery and enqueue scripts in WordPress: http://codex.wordpress.org/Function_Reference/wp_enqueue_script

    Probably easier - and a better practice - is to fix the script than change WP's jQuery loading.

    Use Firebug with Firefox, or in Chrome or Safar or IE8, use the developer tools to see what's loading on your site and catch the JS errors.

  3. Rev. Voodoo
    Volunteer Moderator
    Posted 3 years ago #

    Well, WP loads the version it ships with. The version it is tested with.

    You can unenqueue the proper version and enqueue your own I'm sure.

    http://vudu.me/8i

    Is an article about enqueuing jquery from google...

    http://code.google.com/apis/libraries/devguide.html
    has info about google apis

    I believe the path to your desired version of jquery would be
    https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js

Topic Closed

This topic has been closed to new replies.

About this Topic