From df9ebebc851585745ded6e40580f93650b9c5b07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Holger=20Ko=CC=88nemann?= Date: Fri, 11 Aug 2017 20:17:35 +0200 Subject: [PATCH] remove static can script call and replace it with local js --- footer.php | 1 - inc/enqueue.php | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/footer.php b/footer.php index f98d825e..287575f6 100644 --- a/footer.php +++ b/footer.php @@ -50,7 +50,6 @@ $container = get_theme_mod( 'understrap_container_type' ); - diff --git a/inc/enqueue.php b/inc/enqueue.php index 4c02e33c..bdad86c8 100644 --- a/inc/enqueue.php +++ b/inc/enqueue.php @@ -14,6 +14,7 @@ if ( ! function_exists( 'understrap_scripts' ) ) { $the_theme = wp_get_theme(); wp_enqueue_style( 'understrap-styles', get_stylesheet_directory_uri() . '/css/theme.min.css', array(), $the_theme->get( 'Version' ) ); wp_enqueue_script( 'jquery' ); + wp_enqueue_script( 'popper-scripts', get_template_directory_uri() . '/js/popper.min.js', array(), false); wp_enqueue_script( 'understrap-scripts', get_template_directory_uri() . '/js/theme.min.js', array(), $the_theme->get( 'Version' ), true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' );