Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Oct 2008
    Location
    Poland
    Posts
    382
    Thanks
    150
    Thanked 2 Times in 2 Posts

    Wordpress - how to update jQuery

    Hello my WP theme (not official WP theme) is using this jQuery.

    This jQuery is called from the header with this code:

    Code:
    <script src="http://mysite.com/wp-content/themes/themename/js/jquery.min.js"></script>
    This file is jQuery 1.4.2 and I would like to use 1.8.3.

    How should I proceed to update jQuery?

    Would a simple file replacement work fine (replace jquery.min.js with a newly downloaded jQuery .js) or do I need to use the wp_enqueue_script?

    Thanks for helping

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,875
    Thanks
    6
    Thanked 1,034 Times in 1,007 Posts
    Both ways would work.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •