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
- Create “File-less” Page Template in Functions.php
- 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?
- Is it possible to get a theme customizer setting from wp.customize using jquery?
- 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]
- Get password when user registers and save it sha1 into database
- Is it possible to display the admin bar while in the Theme Customizer?
- Removing the default sidebar from admin panel
- Merging PHP download script into `functions.php`
- How to Change CSS Variable value in Theme Customizer Live Preview
- 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
- Change date number to another language/script?
- How to add custom template tag in wordpress theme?
- wp_enqueue_scripts not called on search page?
- Nesting Functions within Functions
- Is using eval() ok in this scenario
- Custom php page in WordPress theme?
- How to disable controls in theme customizer?
- Theme Customizer not loading JS for live preview
- Post thumbnail to append post content via ajax click event
- Remove “You are using WordPress 3.2.1” from Right Now Dashboard Widget
- Would to use AJAX to get an option from the database and use it in a jquery setup or is there an alternative to consider?
- 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?
- Change the “Default Avatar” admin option via functions.php
- Should all references to a text domain be to my current theme?
- Replace single_template filter with what for default posts?
- Javascipt issue on custom theme
- 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?
- How do I implement jPanelMenu?
- How to make excerpt image be full size instead of thumbnail?
- 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
- how can i remove js file from my footer in wordpress
- How to properly use AWS SES for a contact form?
- 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
- Undefined index: debuging error for theme option template snippet
- WordPress Subpages Fancybox Trouble
- Theme now uses require.js and enqueue script no longer works
- 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
- themeforce (happytables framework) implementation
- My wordpress site memory exhausted more than 1GB trying to debug with default
- jQuery Snippet Not Working on WordPress Site [closed]
- WP Customizer get control value on change
- Execute javscript when theme customizer loads (autosave issue)
- WordPress Includes mejs 404 error