Create and compile your own bootstrap.min.css with this template. Compiled CSS can be used in bootScore theme.
Documentation: https://bootscore.me/documentation/custom-bootstrap-min-css/
- Download file and unzip
- Download and install Visual Studio Code Editor https://code.visualstudio.com/download
- Open Visual Studio Code Editor and install Live Sass Compiler Extension https://marketplace.visualstudio.com/items?itemName=ritwickdey.live-sass
- Open file folder in Visual Studio Code Editor
- Open index.html in browser
- Edit variables in folder /dist/css/bootstrap.scss. Available variables can be found in folder /scss/_variables.scss
- Save file
- Klick "Watch Sass" in the blue banner in VSCode window
- Enjoy your new Bootstrap
- Copy your generated bootstrap.min.css, bootstrap.min.css.map (optional), bootstrap.scss (optional, in case you want to edit later, store a copy of it) in folder /css/lib/ in child theme.
- Insert following snippet in child-theme's functions.php:
// Overide bootstrap.min.css in child-theme
function bootscore_replace_bootstrap() {
// Dequeue parent-theme bootstrap.min.css
wp_dequeue_style( 'bootstrap' );
wp_deregister_style( 'bootstrap' );
// Enqueue new bootstrap.min.css in child-theme
wp_enqueue_style( 'child-theme-bootstrap', get_stylesheet_directory_uri() .'/css/lib/bootstrap.min.css' , array('parent-style'));
}
add_action( 'wp_enqueue_scripts', 'bootscore_replace_bootstrap', 20 );
- Enjoy your new bootScore