Actually it looks like your calling jquery wrong. You should always use wp_enqueue_script, otherwise your asking for conflicts. Don’t call it manually.
The lines you pasted in from WooCommerce don’t load jquery directly – they load it by setting the dependencies for the other scripts. WordPress handles the rest.
If you want to use jQuery from a CDN, deregister it and re-register it with the CDN version. Rather than paste you the code I’ll direct you to the following example which explains how:
http://www.wpbeginner.com/wp-themes/replace-default-wordpress-jquery-script-with-google-library/
Related Posts:
- How do I “unhook” / de-register jQuery so that it’s not called as part of wp_footer();?
- Toggle Sidebar Display
- Custom theme, contact form 7 & fast secure form doesn’t work
- JQuery undefined and Stylesheet loads in bottom along with js files
- enqueue script if page is not equal to
- Get the blog page URL set in Options
- Does the functions.php file ever get called during an AJAX call? Debug AJAX
- pass object/JSON to wp_localize_script
- Using classes instead of global functions in functions.php
- What is the difference between wp_register_sidebar_widget and register_widget?
- Change admin bar to default:off
- When to use esc_url, esc_html, esc_attr, and friends?
- How to edit bbPress template files – WordPress + BuddyPress + bbPress? [closed]
- How to alter the text of the post “Excerpt” box label in WordPress post editor?
- Debugging an error: wp_enqueue_style was called incorrectly
- What is the best practice for customizing a plugin’s JavaScript/jQuery?
- How to change post thumbnail title and alt attributes to post title?
- Why might $input (Settings API) be coming through empty?
- Override default cropping in WordPress [duplicate]
- Removing the default sidebar from admin panel
- Merging PHP download script into `functions.php`
- Is there an error in get_the_tag_list()?
- Returning Variables back into a template
- WordPress Google Maps in Custom Theme
- How can I loop into two different DIVS without repeating the DIVs
- Allow users to add custom functions to wordpress theme
- How to add custom template tag in wordpress theme?
- Nesting Functions within Functions
- Getting jquery to work with custom theme
- Add external js file to footer with id
- How can I customize wp_footer, where is the code that controls what this function does?
- How to list all images in uploads directory except those that are attached to any post
- Adding wp_enqueue_media(); causes problem
- More than one meta field in a single meta box?
- Is there a theme function for is_password_protected()?
- how do you create an admin interface in plugin for your theme
- How to determine which custom header image is being shown
- Theme Check: Could not find post_class
- Including Javascript options
- How to store functions in… functions.php?
- Check if home.php and set home.php as page_on_front
- WP 3.1 upgrade breaks AutoFocus+ theme
- Difficulty loading jQuery with wp_enqueue_script
- jQuery not available to other scripts
- My javascript jquery won’t work?
- Create another “Display Site Title and Tagline” checkbox, “Header Text Color” setting and control
- Using $post->post_name in body id causing error: Trying to get property of non-object
- Should I use add_filter for functions in function.php of the theme?
- Implementing FancyBox
- Pass variable to hook. Its possible?
- How to: JQuery multiple wordpress media uploader buttons in the same options page?
- How to disable controls in theme customizer?
- Theme Customizer not loading JS for live preview
- Remove “You are using WordPress 3.2.1” from Right Now Dashboard Widget
- Replace function in a child theme
- Using page-id-{ID} from body_class() in local dev, versus live staging
- My jQuery is enqueued properly. So why isn’t it working?
- Should all references to a text domain be to my current theme?
- Replace single_template filter with what for default posts?
- How to make javascript work on theme options page
- Theme not calling Jquery properly
- Weirdness in jQuery supplied with WordPress
- How to call the_time current?
- jQuery from parent theme loaded with many other scripts in a single min.js file
- Following/tracing page construction through theme PHP
- Trouble in enquing all js files under certain directory
- 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]
- Add content after get_header
- Can’t change theme name
- How to set default values for edit_post_link() in my theme?
- loading javascript after jquery is loaded
- MapPress Easy Google Map in Jquery Tabs Problem
- WordPress 6.x / PHP 8.x deprecated warnings in development environment
- I don’t think WordPress is loading jquery or bootstrap js
- Embedding CodePen Calorie Script – jquery error
- How to load jQuery with Ajax in WP version 5.3.2?
- How to enqueue scripts properly with ES6 webpack?
- Infinite scroll without plugin using ajax
- change background image on scroll
- how to add jquery to wordpress
- How to debug theme (Theme is causing pages to have no style or HTML section)
- jQuery conflict in WordPress, works fine in HTML
- Extend the WP_Customize_Image_Control class to change its non-frame $button_labels
- A Customizer checkbox control that sets the setting to “” or to “blank” and show() or hide() a color control
- How would I get this to work – send to post from thick box
- FitVid not working for iframes on particular theme install
- Enable WP to accept standard jQuery code embeding between the tags [duplicate]
- WordPress custom jquery not found
- Passing a location-dependent array via wp_localize_script within a shortcode
- apply_filters to featured image
- Set start page depending on screen width [closed]
- Mamp pro permalink issues. Pages keep reverting to index.php
- loading custom.js file after jquery is loaded
- WordPress Subpages Fancybox Trouble
- can’t add EVENT LISTENER to a element
- Creating custom function in wordpress to return data from database
- Getting URL of Resized Image
- Adding a new layout for genesis
- My wordpress site memory exhausted more than 1GB trying to debug with default
- jQuery Snippet Not Working on WordPress Site [closed]