using bootstrap.bundle.js instead of popper.js and bootstrap.js

This commit is contained in:
Holger Könemann 2018-07-30 15:02:20 +02:00
parent 521548ee59
commit acb4fcb186
4 changed files with 2525 additions and 9 deletions

View File

@ -139,7 +139,7 @@ gulp.task( 'scripts', function() {
var scripts = [
// Start - All BS4 stuff
paths.dev + '/js/bootstrap4/bootstrap.js',
paths.dev + '/js/bootstrap4/bootstrap.bundle.js',
// End - All BS4 stuff

View File

@ -18,7 +18,6 @@ if ( ! function_exists( 'understrap_scripts' ) ) {
wp_enqueue_style( 'understrap-styles', get_stylesheet_directory_uri() . '/css/theme.min.css', array(), $css_version );
wp_enqueue_script( 'jquery');
wp_enqueue_script( 'popper-scripts', get_template_directory_uri() . '/js/popper.min.js', array(), $theme_version, true);
$js_version = $theme_version . '.' . filemtime(get_template_directory() . '/js/theme.min.js');
wp_enqueue_script( 'understrap-scripts', get_template_directory_uri() . '/js/theme.min.js', array(), $js_version, true );

File diff suppressed because it is too large Load Diff

2
js/theme.min.js vendored

File diff suppressed because one or more lines are too long