load jquery in wordpress functions.php code example

Example 1: jquery wordpress starter code

jQuery(document).ready(function( $ ) {
  //Place your jQuery code here...
});

Example 2: wp_enqueue_script jquery

// include custom jQuery
function shapeSpace_include_custom_jquery() {

	wp_deregister_script('jquery');
	wp_enqueue_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js', array(), null, true);

}
add_action('wp_enqueue_scripts', 'shapeSpace_include_custom_jquery');