When you register/enqueue your other scripts, simply pass jQuery as the third parameter and it will be loaded first and only once, from the local WordPress files:
wp_register_script( 'theme-js', get_template_directory_uri() . '/js/theme.js', array( 'jquery') );
If you only need the jQuery, simply use:
wp_enqueue_script('jquery');
You can find a list here about the javascript libraries that are included in your default WordPress site:
Related Posts:
- What is the best practice for customizing a plugin’s JavaScript/jQuery?
- WP 3.1 upgrade breaks AutoFocus+ theme
- How to convert that page to a wordpress template? [closed]
- theme path in javascript file
- pass object/JSON to wp_localize_script
- How to Link External jQuery/Javascript files with WordPress
- Using classes instead of global functions in functions.php
- Template for individual post designs
- Front End Post Submit Form
- How do I “unhook” / de-register jQuery so that it’s not called as part of wp_footer();?
- Check javascript file Proper way in functions.php
- How to Change CSS Variable value in Theme Customizer Live Preview
- Upgrading a custom theme through the Dashboard
- Theme Customizer not loading
- How to configure wordpress to work with Vuejs with SSR and without hashbang
- Version control for both Vagrant config and themes being developed [closed]
- using wordpress without javascript
- Including Javascript options
- How to add a second stylesheet to the editor
- jQuery not available to other scripts
- is_customize_preview() like function to check if Customizer “Live Preview” in JavaScript
- How to make theme elements customizable in wordpress?
- Limitations when modifying wp_title with a filter
- How to edit theme functions file to modify pagination?
- Theme Javascript.php Overwritten Nightly [closed]
- Customizer: save setting/control content to post/page
- How to: JQuery multiple wordpress media uploader buttons in the same options page?
- Menu jumping when calling it via PHP
- Customize how a WordPress theme looks like in the Theme Selector
- Customizer – loading settings/controls/sections/panels based on a id/page id
- Integrate WooCommerce theme with a WordPress theme [closed]
- Widget Option is Missing
- How do you use WordPress for a website that’s not in a blog format?
- My jQuery is enqueued properly. So why isn’t it working?
- How can I wrap all blog posts image with
- searchform.php doesn’t work properly
- Customizer: get_preview_url() inside customize_save_after hook
- New to WordPress – Read the Codex, Other Docs; Still Confused
- Create theme for mobile phones and tablets only?
- How to add custom page elements to the WYSIWYG editor?
- Why a SlideShow (made using JQuery FlexSlider) can’t work if I load it form functions.php but work if I load it from my footer.php file? [closed]
- Can’t change theme name
- How to enqueue scripts properly with ES6 webpack?
- change background image on scroll
- Is hand coding required at all?
- WordPress Twenty-Fourteen: How to Remove Home Page Header Image from Other Pages
- How to dowload and edit content of a website
- Any way to permanently translate themes?
- How to prevent XSS attack in wordpress theme?
- Best strategy for providing theme options using customizer
- How would I get this to work – send to post from thick box
- Flexslider not working for my custom theme WordPress
- How Does One Create a Global Variable Repository
- Theme customizer live preview JS- Trying to bind to an html image url without luck
- WordPress custom jquery not found
- Set start page depending on screen width [closed]
- Using wp_enqueue_script with social media buttons?
- Turning WordPress Into full-featured website?
- Theme now uses require.js and enqueue script no longer works
- can’t add EVENT LISTENER to a element
- What is The Best Way to Make Parallax header effect for wordpress theme ?? pure CSS or using JavaScript? [closed]
- Javascript as Jquery Function Call?
- How can i move my product name & price from below thumbnail to be the rollover content in Avada & Woocommerce?
- jQuery Snippet Not Working on WordPress Site [closed]
- WP Customizer get control value on change
- Execute javscript when theme customizer loads (autosave issue)
- Sizing screenshot.png without losing aspect ratio
- When to use is_home() vs is_front_page()?
- What is the preferred way to add custom javascript files to the site?
- Does the functions.php file ever get called during an AJAX call? Debug AJAX
- How to add CSS class to custom logo?
- How to add custom css file in theme?
- Validating Custom Meta Box Values & Required Fields
- How to include jQuery and JavaScript files correctly?
- get_template_part vs action hooks in themes
- Solutions for generating dynamic javascript / CSS
- The the_post_thumbnail without srcset?
- The proper way to include/require PHP files in WordPress
- after_setup_theme always runs
- Do I actually need to link my theme’s style.css in the theme files
- WordPress API Menu/Submenu Order
- How to insert a logo in the header?
- How to move page template files like page-{slug}.php to a sub-directory?
- How do register_sidebar() and get_sidebar() work together?
- CSS classes for theme
- Add custom classes to anchor in wp_nav_menu
- How to remove search bar from a wordpress theme? [closed]
- Display random categories on the front page (Finding and Editing Theme Functions)
- Should `get_template_directory_uri()` be escaped?
- Get url of thumbnail from the media uploader
- My child theme doesn’t work Error: “The parent theme is missing. Please install your parent theme”
- How To Add New Option Types To Option Tree?
- WP 3.4 – what action/hook is called when theme customisation is saved?
- What WP folder can I use to write files to?
- What are the ADVANTAGES of ORIGINAL wordpress template structure?
- Change admin bar to default:off
- Are the WordPress Core CSS styles really all nessesary?
- Add a dropdown to theme customizer
- Should I use set_transient or update_option?
- Why doesn’t default WordPress page view use force_balance_tags?