• My site it pulling this version of jQuery from <head>, which is old:
    <script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js?ver=5.3.2'></script>

    I can’t find this code in the theme editor (header.php). Where/how can I update the version of jQuery being called?

    Justin

    • This topic was modified 4 years, 3 months ago by JustinBBC.
    • This topic was modified 4 years, 3 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator t-p

    (@t-p)

    jQuery version that comes with WP 5.3.2 is 1.12.4

    Apparently You are using google Hosted Libraries for jQuery 1.4,
    You can update from there.

    Thread Starter JustinBBC

    (@justinbbc)

    Great, but where do I change the call to the JS file? What if I don’t want to use Google-hosted stuff and just use the WP version – who do I remove this ref to Google’s stuff?

    Moderator t-p

    (@t-p)

    I wouldn’t know how and where exactly you have implemented it.

    My guess would be to first check your theme’s functions.php file.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Moved to Fixing WordPress, this is not an Everything else WordPress topic.

    Which theme is that? WordPress uses the jquery it ships with and doesn’t load from Google or anywhere. It may be your theme or a plugin on your site doing that.

    Thread Starter JustinBBC

    (@justinbbc)

    It is a custom theme based off of twenty-one (or something like that).
    Functions.php didn’t show any JS links.

    How can I debug where it is coming from? I have a plugin that needs a newer version of jQuery. Can I just create a call to a newer version along side the existing?

    I thought this would be elementary for the WP experts, so I’m surprised the answer is not easy.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    It may be easy but we’ve no idea where that jquery is being loaded from. If it were one of the themes supported here then many people would be able to assist you. As it’s a custom theme, we’ve no idea.

    Thread Starter JustinBBC

    (@justinbbc)

    That could be a good hint for me, Jan. Can you tell me where a jQuery link might be hidden in a theme? Where could I look? What part of a theme would insert a jQuery link the <head> tag?

    I have no idea where to look because the header.php shows nothing related to this.

    Think of it this way: If you had to figure out where this script tag was coming from, where would you start digging?

    • This reply was modified 4 years, 3 months ago by JustinBBC.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to change version of jQuery’ is closed to new replies.