From f85159d3ed4568033d32fee9869f9e0d2f7557bf Mon Sep 17 00:00:00 2001 From: CK Hicks Date: Mon, 20 Jun 2016 09:49:13 -0500 Subject: [PATCH] Fixing jQuery script registration --- functions/wordpress/enqueue-scripts.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/functions/wordpress/enqueue-scripts.php b/functions/wordpress/enqueue-scripts.php index b61f5f2..e8feb6c 100644 --- a/functions/wordpress/enqueue-scripts.php +++ b/functions/wordpress/enqueue-scripts.php @@ -20,9 +20,9 @@ function enqueue_custom_scripts() { // Remove default jQuery and add Google hosted version to the footer // Are you building a site that requires IE8? Use: //ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js - wp_deregister_script('jquery'); - wp_register_script('jquery', ('//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js'), false, '2.1.3', true); - wp_enqueue_script('jquery'); + wp_deregister_script('jquery-core'); + wp_register_script('jquery-core', ('//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js'), false, '2.1.3', true); + wp_enqueue_script('jquery-core'); // Load the site's main.js file but make sure jQuery is there first wp_register_script('site-main', (get_stylesheet_directory_uri() . '/assets/js/main.js'), array('jquery'), '1.0.0', true);