using bootstrap.bundle.js instead of popper.js and bootstrap.js
This commit is contained in:
parent
521548ee59
commit
acb4fcb186
|
@ -139,7 +139,7 @@ gulp.task( 'scripts', function() {
|
||||||
var scripts = [
|
var scripts = [
|
||||||
|
|
||||||
// Start - All BS4 stuff
|
// Start - All BS4 stuff
|
||||||
paths.dev + '/js/bootstrap4/bootstrap.js',
|
paths.dev + '/js/bootstrap4/bootstrap.bundle.js',
|
||||||
|
|
||||||
// End - All BS4 stuff
|
// End - All BS4 stuff
|
||||||
|
|
||||||
|
|
|
@ -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_style( 'understrap-styles', get_stylesheet_directory_uri() . '/css/theme.min.css', array(), $css_version );
|
||||||
|
|
||||||
wp_enqueue_script( 'jquery');
|
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');
|
$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 );
|
wp_enqueue_script( 'understrap-scripts', get_template_directory_uri() . '/js/theme.min.js', array(), $js_version, true );
|
||||||
|
|
2529
js/theme.js
2529
js/theme.js
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
Reference in New Issue