Skip to content

Commit

Permalink
add and load popper.js in child theme too
Browse files Browse the repository at this point in the history
  • Loading branch information
holger1411 committed Aug 16, 2017
1 parent 8de8d7c commit 2059f07
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 12 deletions.
2 changes: 2 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@ function theme_enqueue_styles() {
$the_theme = wp_get_theme();

wp_enqueue_style( 'child-understrap-styles', get_stylesheet_directory_uri() . '/css/child-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( 'child-understrap-scripts', get_stylesheet_directory_uri() . '/js/child-theme.min.js', array(), $the_theme->get( 'Version' ), true );
}
28 changes: 19 additions & 9 deletions js/popper.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2059f07

Please sign in to comment.