To load default wordpess jquery you can use this
add_action( 'wp_enqueue_scripts', 'my_jquery' );
function my_jquery(){
wp_enqueue_script("jquery");
}
And use jquery no conflict wrapper to avoid error or on your jquery code
(function($) {
// Inside of this function, $() will work as an alias for jQuery()
// and other libraries also using $ will not be accessible under this shortcut
})(jQuery);
Get more details on wp enqueue script
Related Posts:
- JSON parsing error syntax error unexpected end of input
- jQuery $(this) keyword
- How to enable CORS in flask
- Change Placeholder Text using jQuery
- Set selected option of select box
- jquery loop on Json data using $.each
- JavaScript console.log causes error: “Synchronous XMLHttpRequest on the main thread is deprecated…”
- how to loop through JSON array in jQuery?
- jQuery – how to write ‘if not equal to’ (opposite of ==)
- Get element type with jQuery
- jQuery onclick toggle class name
- How can I create a “Please Wait, Loading…” animation using jQuery?
- $.focus() not working
- How to modify wp.media to get and display multiple images
- wp_mail script with jQuery post
- AJAX returns response 0
- Hacking TinyMCE for better usability (shortcodes and html)
- Including javascript for a shortcode
- possible to make sections in theme customizer sortable and saveable at publish button clicked?
- Twitter Bootstrap Use Collapse in Custom Post Type
- wp_head() remove redundant scripts?
- How disable checkbox when listbox value changes in tinymce
- Enqueue jQuery in WordPress
- Installing jQuery plugin to wordpress theme (Incredible)
- How do I get my page to load the jQuery UI Effects library?
- Modify this loop to fit my jQuery slider (slides)
- validate a metabox based on the category that is selected
- How to add unique image class to WordPress
- Dropzonejs with WPCF7 [closed]
- Edit single attachment on click (WP-admin)
- Jquery conflict
- Clicking on disabled ‘add to cart’ button [closed]
- Accept AJAX call with serialized form data
- WordPress loads Jquery Automatically – is my idea correct to add it to the footer?
- How to use “show more” on a page or post to show and hide content
- Ajax not posting form data to query in PHP function
- Front-end Ajax File Upload
- Enqueue WordPress jQuery after it’s been deregistered by a plugin
- gravity forms jQuery.load into modal [closed]
- jQuery ajax call throws an HTTP 302
- Multiple jQuery conflict unsure of why
- Custom Theme Design: do I need to “enable” jquery/javascript libraries?
- Jquery not working on mobile browser
- “TypeError: ((n.event.special[g.origType] || {}).handle || g.handler).apply is not a function” error from jquery.js?ver=1.12.4-wp library
- Sorting widget control
- Advanced Ajax Page Loader (AAPL) blocks resources
- Dukapress jQuery(“form.product_update”).livequery is not a function [closed]
- Send multiple attachments with JQuery and wp_mail() function
- Cannot enqueue jQuery correctly using Google CDN
- How to use jQuery in WordPress 5.7+
- Why doesn’t my very simple jQuery work?
- TinyMCE plugin won’t work with jQuery 3.5.1 (testing with “Test jQuery Updates”)
- What is the propre way to include jQuery UI Datepicker’s CSS in plugin?
- Why use admin-ajax.php when loading pages through AJAX?
- Insertng HTML and jQuery into a page that uses the Defaut template
- WP Rest Api / Ajax POST not working when not logged in
- Admin side jquery is not loaded
- “JQMIGRATE: Migrate is Installed” How do I find the problem code? [duplicate]
- Referrer URL with jQuery or Javascript – Cache & Referrer URL Issue
- Is there some way to refactor this jQuery wrapper?
- Readonly input text appears unlocked while the page is loading
- Remove swfobject.js in wp_head()
- Run JS function when JQ enqueued
- Uncaught ReferenceError: jQuery is not defined: how to fix on a sunday? [closed]
- underscore template dynamically remove row Jquery
- Multiple selec2.js file loaded by several plugins
- Safe method to temporarily load second jquery library to wordpress
- echo do_shortcode for Contact Form 7 from within dynamically loaded php file
- How to use wp_update_post with ajax on frontend
- including jquery
- Customizing the Jquery Calendar [closed]
- How to enable read more by default using jquery
- How to make JQuery load on top of head tag before everything
- Show and hide element when URL contains certain section of text?
- How to insert fancybox to multiple separate galleries in a post?
- Dashboard controls have all stopped working
- Notify user we would like them to clear their cookie. Provide a working button to clear cookies for user
- Call full image url instead of stylsheet directory url in JS for Infinite Scroll Function
- jQuery.post() calling function with parameter
- $_POST empty in using new php file added to theme
- How to blur the_post_thumbnail() via blur.js (jquery)?
- Custom Javascript not working? [closed]
- What to do after a wrong RewriteRule?
- Plugin preventing media buttons from working
- How to deregister scripts all at once
- Using jQuery DataTables and yadcf
- jQuery autcomplete not working
- jQuery drop down not appearing for autocomplete/autosuggest
- jQuery dialog prints HTML-Tags under WordPress
- Add jQuery function to media button
- TypeError: $ is not a function Error using parallax effect in WordPress Template [duplicate]
- Loading custom file based on a dependant file that is also dependant on another file
- Why won’t this jQuery work in WordPress?
- Auto Sorting List Alphabetically
- Change WooCommerce Checkout Manager Datepicker to Jalali
- jQuery append only works if I select html in admin section [closed]
- jQuery color picker function on change
- Use WordPress Built In Jquery
- Generate dynamic ID’s for each accordion button
- Impossible to update jQuery version from 3.1.0