You need to use the wp_enqueue_script function (in your functions.php file) to call the relevant scripts you need. It allows for both built-in libraries and to add any custom that you’re including in your theme.
Related Posts:
- Enqueue core jQuery in the footer?
- How to correctly include jquery-ui effects on wordpress
- Concatenate and minify dependencies for enqueued JavaScript files
- tinymce is not defined when not using wp_editor
- Make jQuery library load before plugin files
- Move WordPress native javascript to bottom of page?
- Lightbox popup on WooCommerce add_to_cart action
- Using the WordPress Media Library and returning the Attachment ID rather than URL?
- RequireJS in custom theme. Working Example
- How to get a jQuery script to run on a page?
- Add `datetimepicker` to form
- Deregister WordPress jquery on specific page
- Gravity Forms loading jquery
- Any good lightbox-like option that works in WP 3.2.1?
- 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_enqueuescript won’t load in footer even with true value set?
- How wp_enqueue_script works?
- 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
- Simple jQuery Click Not Working, though console log recognizes the function [closed]
- Script won’t execute in the media manager
- 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
- 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
- Is it necessary to enqueue jquery?
- WordPress Ajax problem with undefined url
- Move jQuery to the bottom of the page whilst keeping the WordPress jQuery
- Exclude some scripts from removing unique scripts from head function
- Searching multiple tags and adding jQuery dependant script onto page template?
- Why does javascript works only if logged in?
- How to enqueue jquery in admin and why is it not already there?
- Enque Javascript in Footer?
- Why is my WordPress loading old version of JQuery?
- wp_enqueue doesn’t work
- Yoast SEO breaking media upload
- $.browser Undefined Seemingly Causing Faulty Page Display
- Trouble enqueueing jquery with custom theme
- Why should I deregister jquery?
- Plugin Scripts no loading on options page
- How to enque js script in footer that are not in .js file?
- Loading scripts on a single page plants the script in the footer
- Adding URL of PDF from Thickbox in a Meta Box
- registering new jQuery after wp_deregister_script() not working
- How to change background image from WordPress Gallery
- Loading a newer version of jQuery within WordPress
- Run JS function when JQ enqueued
- jQuery will not work on page from snippet or file
- jQuery plugin not loading
- Can’t execute jQuery before my script
- Why does deregistering jQuery cause other scripts not to load?
- jQuery is not defined, working on local server but not online
- Using WP functions inside javascript
- wp_enqueue_script jquery and jquery ui not working
- How to modify iFrame content in an admin thickbox
- wp_enqueue_script calling jQuery at different times for different browsers?
- A carousel slideshow plugin in JavaScript
- Calling multiple scripts using wp_enqueue_script
- WordPress not showing jQuery
- Get with jQuery the value of an ACF field
- Override parent theme deregister
- How to make JQuery load on top of head tag before everything
- How to insert fancybox to multiple separate galleries in a post?
- jQuery Plugin Uncaught TypeError: jQuery(…).slider is not a function
- JavaScript code do not works on online server
- I can’t enqueue Suggest.js in frontend – not added
- File not enqueueing
- Enqueue script, taking no effect [closed]
- WordPress and Raty.js
- Can’t seem to get JQuery working (wordpress plugin)
- Enqueue javascript that inserts custom php widget into jQuery-constructed div
- Ajax Request with jQuery not happening
- jQuery AJAX add json2 dependency?
- jQuery does not appear to be enqueued on static homepage
- Uncaught TypeError: Object [object Object] has no method ‘dialog’
- Object [object Object] has no method ‘slides’
- Thickbox not displaying just the image, instead showing full page in lightbox
- 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
- How to make jQuery load AFTER plugin’s script?
- Monarch JS has not been loaded. After changing the $dep parameter, it start being loaded
- jQuery issue and wp_enqueue_script
- Using WP Ajax and jQuery to process multiple forms on the same page?
- 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