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)
- Change admin bar to default:off
- Pushing updates to your premium theme
- Where can I find a good reviewed collection of Twenty Ten child themes?
- Change loop order via form or link (jquery, not URL)
- CSS in child theme not overriding the parent theme [closed]
- Advantages of using instead of wp_enqueue_style()?
- How to add suggest plugin to theme?
- Prevent update check for specific theme
- If I build a custom theme, will it update?
- Where should I update_options in a theme?
- How to edit my theme for full width?
- Use second time navigation.js in underscores [closed]
- Customizer: active_callback and sanitize_callback incompatibility?
- Echo all category names, apart from one
- Overrite parent functions using child functions
- How can I change the theme of different posts using a plugin?
- Is there a WordPress boolean for “theme_customizer_active()”?
- Weirdness in jQuery supplied with WordPress
- Unable to change the priority with ‘remove_action’ and ‘add_action’ in child theme
- Remove h1 from 2015 theme
- WordPress pulling in random page themes
- Trouble in enquing all js files under certain directory
- Update Specific Key Value in Complex `wp_options` object
- enqueuing external and internal js and css in wordpress did not work with owl.js animate.css
- Problem with pagination link (error 404)
- home is not working in wordpreess
- Local theme changes upload on server but theme changes not showing
- HTML TO WP Theme : Submenu goes down wp_nav_menu
- New created Theme leads to malfunctioning Xampp Apache –> functions.php is cause
- What hook to use for loading a custom class extension during Theme initialization?
- Custom link color or stylesheets
- Why do some sites show themes/”themename” as the only theme?
- How to set up a development/staging site to make major changes to the theme then update on the live site?
- What is the point of using the front-page.php template? [closed]