WordPress doesn’t use externally hosted jQuery. In fact, as far as I’m aware, WordPress core does not register any externally hosted scripts.
WordPress bundles its own version of jQuery, and you can enqueue the bundled version by just enqueueing the handle jquery
:
wp_enqueue_script( 'jquery' );
Or by specifying 'jquery'
as a dependency:
wp_enqueue_script( 'my-script', '/path/to/my-script.js', [ 'jquery' ] );
If you enqueue jQuery like that, but it’s still loading an externally hosted version, then your theme or a plugin is either loading its own version separately, or has re-registered jquery
with an external version. The easiest way to find the culprit is to deactivate plugins, checking your site after each one, to see if the correct version is loading.
Related Posts:
- Pass PHP variable to javascript
- force enqueue script to be first in order of prominence
- How can I make default jquery version of WordPress “async”?
- Help making my pagination plugin better
- Handling jQuery Component Collision
- How to Add jQuery Infinite Scroll to My Custom Archive Page
- Is dynamic forms/entries possible in Widget?
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- Editor not displaying dynamically after clicking on the button
- WordPress Enqueue Script Chaos (jQuery & Foundation.js)
- Check javascript file Proper way in functions.php
- WordPress Plugin development Call to undefined function jQuery()
- How to load default scripts included with WordPress correctly?
- How to create popup same as wordpress popup feature
- Only execute jQuery function(on document ready) on the page has shortcode from plugin [duplicate]
- Ajax with jQuery UI dialog not working
- WordPress 3.5 Media Manager – add a button
- Handling jQuery Component Collision
- How do I make sure a plugin loads a script after jQuery
- Add get_option to jquery
- Check if email address exists front end with AJAX in a plugin
- Confused about shortcode and settings values
- Running jquery script after shortcode [closed]
- scrolltop always 0, can’t trigger script
- Bootstrap Drop Down menu is not working
- Change upload folder for a CPT
- How to hide CSS by default and show on button press
- Uncaught TypeError: jQuery(…).flipster is not a function in wordpress
- Redux Framework: Page freezes on typing in Editor
- How can I inject options into an select tag inside the widget form?
- jquery tinymce and bundled wp plugins
- Display wordpress post’s in popup?
- Using color picker in plugin, does input attribute order matter?
- Using window.onload with Ubermenu
- jQuery | JJ Carousel Plugin – Can’t set speed [closed]
- Jquery plugin not working on single pages
- Jquery NoConflict Problem
- this jQuery function works perfect in static html page but not on wordpress
- How to include this jQuery File in wordpress?
- AJAX fileupload – TypeError: not a function ajaxSubmit()
- Is there a way to embed a Google Docs form in a page without using plugins?
- “Conflict” with jQuery (or its plugins)?
- a weird attribute on every html tag
- How to add an element right after the article using jQuery?
- How to track clicks
- Remove Yoast jQuery from front end
- How to display checked posts on another page over AJAX? (like comparasion style)
- Adding media upload button to User Profile page (following a tutorial)
- I changed .live() to .on() but change is not reflected on the server
- Save user total active time after login in wordpress [closed]
- Getting 400 Error: redirect_uri_mismatch when trying to grant permission to Gmail SMTP plugin
- Why does my jQuery plugin show up as text in WordPress?
- Disable submit button order
- Enqueue script: link not working in page source
- How to include my Ajax calls in one function instead of calling different ones every time?
- Why jquery option is not working when pass value using wp_localize_script?
- jQuery code didn’t run on my plugin
- The Events Calendar Plugin – List View Background Colour Issue [closed]
- “switchEditors is not defined” with wp_editor() in jQuery UI tabs
- Using AJAX to run SQL statement and populate dropdown
- WordPress slider that allows image, headline, text, and button?
- Ajax request sends url rather than data
- Adding a jQuery modal dialog to the admin area
- sliding/fading header plugin or approach suggestion
- Pass PHP variable to javascript
- Cannot read properties of undefined (reading ‘firstChild’) using photoswipe in product page
- Trigger jQuery to add events after AJAX-loading table in admin plugin
- wc_get_template_part doesnt display the content [duplicate]
- How to add height and width to images on a page(using WP Bakery) to improve Google’s CLS score?
- Why do I need to reload the page for WordPress to see the new custom field added with jQuery
- Cannot pass value variable to WP AJAX functions
- How to properly enqueue jQuery knob on WordPress without conflict?
- How to get a specific string from a url
- Does anybody know how to insert a complete jquery plugin into a wordpress elementor-page?
- JS working when used normally but not in wordpress
- $wpdb not working wordpress plugin ajax call
- Scroll to ID broken in main menu
- WordPress Ajax request “Failed to load resource: the server responded with a status of 400 ()”
- WordPress Thickbox Navigation Issue in Gallery
- Dynamic input fields in WordPress Plugin
- Not displaying Woocommerce product page in lightbox
- show-hide based on select option jquery wordpress
- Add HTML between feed items
- WordPress Feedback popup with date saved into table
- WordPress ajax not working in registration
- How to add jquery to my custom post type wp plugin
- Like/Dislike Bar not working when updating
- jquery-issue: cannot load the basic jquery
- Why won’t the Comprehensive Google Map Plugin load?
- “The Events Calendar” Issues in WP 3.2
- Element works, but not on wordpress site [duplicate]
- WordPress site keeps getting flagged as malware [closed]
- FacetWP: Plugin breaks button/modal functionality inside searchable content area
- TypeErrors with Yoast, jQuery in conflict?
- Javascript as Jquery Function Call?
- JQuery UI plugin not working in IE7?
- Jquery based image accordian plugin
- wordpress jquery is not defined because the head tag is empty
- Count div with class (.length) only shows 0 [closed]
- Jquery post responses 500 error after some time and lastly an 503 error