To do that you will first have to deregister your jQuery script and then register again.
If you use jQuery comes with WordPress then following is the function your are looking for.
function starter_scripts() {
wp_deregister_script( 'jquery' );
wp_register_script( 'jquery', includes_url( '/js/jquery/jquery.js' ), false, NULL, true );
wp_enqueue_script( 'jquery' );
wp_enqueue_style( 'starter-style', get_stylesheet_uri() );
wp_enqueue_script( 'includes', get_template_directory_uri() . '/js/min/includes.min.js', '', '', true );
}
add_action( 'wp_enqueue_scripts', 'starter_scripts' );
If you use Google CDN hosted version of jQuery then let me know I will modify this code for Google CDN URL.
Related Posts:
- How to correctly include jquery-ui effects on wordpress
- How do I make script load after jquery?
- Concatenate and minify dependencies for enqueued JavaScript files
- tinymce is not defined when not using wp_editor
- How to control what jQuery version to include, with wp_enqueue_script
- Adding jquery and thickbox to WordPress theme
- Move WordPress native javascript to bottom of page?
- Best Practices for Seperating jQuery from HTML/PHP
- Add `datetimepicker` to form
- Gravity Forms loading jquery
- Including javascript for a shortcode
- Asynchronous Javascript Loaders
- Best Way to Include Scripts on a Specific Template Page
- How to include jquery validate in a template
- wp_enqueue_script won’t load in header?
- chosen jquery library not loading – is not a function error
- wp_enqueue_script and wp_register_script in theme not working
- How wp_enqueue_script works?
- Enqueue jQuery in WordPress
- WordPress Script Loading/Unloading — wp_deregister_script(‘jquery’)
- How do I activate jQuery/script on demand?
- Adding jQuery dependency prevents my script from enqueuing/loading
- How do I get my page to load the jQuery UI Effects library?
- jQuery on Underscores menu
- Simple jQuery Click Not Working, though console log recognizes the function [closed]
- Script won’t execute in the media manager
- When does WordPress automatically enqueue jQuery?
- How to properly add Bootstrap and JQuery Javascripts?
- Can’t move jQuery to footer
- Using multiple versions of jQuery while still calling it like WP likes
- wp_ajax() question.. not using wp_enqueue_script?
- wp_enqueue_scripts hook is not being called
- Why isn’t jQuery 2.1 loading in the header?
- Override default jquery ui library with newer version
- enqueue the scripts
- Enqueuing javascript files
- WordPress loads Jquery Automatically – is my idea correct to add it to the footer?
- enqueued script with jquery dependency not getting jquery
- Enqueue Google CDN jQuery in Footer
- How to undo deregister script and use local versions?
- ‘jQuery is not defined Error’ appearing in load-scripts.php
- Best way to include jQuery and fire with script at bottom of container
- Is it necessary to enqueue jquery?
- Enqueue WordPress jQuery after it’s been deregistered by a plugin
- Exclude some scripts from removing unique scripts from head function
- Searching multiple tags and adding jQuery dependant script onto page template?
- How to enqueue jquery in admin and why is it not already there?
- Enque Javascript in Footer?
- Plugins loading multiple copies of JQuery
- Cannot enqueue jQuery correctly using Google CDN
- wp_enqueue doesn’t work
- Yoast SEO breaking media upload
- $.browser Undefined Seemingly Causing Faulty Page Display
- Problem getting .js file to load via a plugin
- Using jquery-1.7.2.min.js instead of the wordpress jquery
- How register library to use jquery correct
- WordPress error when replacing local jQuery by externally-hosted
- Trouble enqueueing jquery with custom theme
- Plugin Scripts no loading on options page
- Loading scripts on a single page plants the script in the footer
- registering new jQuery after wp_deregister_script() not working
- Loading a newer version of jQuery within WordPress
- Run JS function when JQ enqueued
- jQuery will not work on page from snippet or file
- Can’t delete the default jQuery in the theme
- jQuery plugin not loading
- Can’t execute jQuery before my script
- Why does deregistering jQuery cause other scripts not to load?
- Using WP functions inside javascript
- How To Include JavaScript Files Only In Single Posts?
- Calling multiple scripts using wp_enqueue_script
- Bootstrap and jQuery error: $ is not defined
- Fire action after enqueue script
- WordPress not showing jQuery
- Override parent theme deregister
- How to make JQuery load on top of head tag before everything
- Uncaught ReferenceError: jQuery is not defined
- jQuery Plugin Uncaught TypeError: jQuery(…).slider is not a function
- JavaScript code do not works on online server
- Bootstrap with separate js File
- I can’t enqueue Suggest.js in frontend – not added
- File not enqueueing
- Enqueue script, taking no effect [closed]
- WordPress and Raty.js
- How to add JS snippet before closing tag?
- Enqueue javascript that inserts custom php widget into jQuery-constructed div
- jQuery AJAX add json2 dependency?
- jQuery does not appear to be enqueued on static homepage
- Scripts only working on home page
- Uncaught TypeError: Object [object Object] has no method ‘dialog’
- Object [object Object] has no method ‘slides’
- JS plugin script loading but not working
- Need help with adding jQuery script to WP and calling script to page
- How to Run a jQuery Script after a Javascript Script has Finished in WordPress
- Monarch JS has not been loaded. After changing the $dep parameter, it start being loaded
- jQuery issue and wp_enqueue_script
- bootstrap-slider.js by seiyria not working in wordpress
- How to enqueue script before jQuery? [duplicate]
- javascript and css not loading properly in WordPress site
- Making the Google Maps API non readable