v 1.3.2 notice
-
Since version 1.3.2, these things will be change, breaks.
Deleted
html5shiv.js, html5shiv.min.js, respond.min.js have been deleted.
fix-bootstrap.css has been deleted.Moved
These folders and files inside them have been moved.
css, fonts, img, js have been moved into assets folder.Added/New
The modern Bootstrap 3 has been added. It use modern CSS variable, functions, syntax, but it is not loaded by default. You have to use filter hook
bootstrap_basic_use_modern_bootstrapand set value totrueto load it instead of original Bootstrap 3.4.1.Example of code you should use in your theme or plugin.
add_filter('bootstrap_basic_use_modern_bootstrap', '__return_true');Release note: https://github.com/Rundiz-WP/bootstrap-basic/releases/tag/1.3.2
To fix:
If you previously do something like this.
wp_dequeue_style('bootstrap-style');
wp_enqueue_style('bootstrap-3', trailingslashit(get_template_directory_uri()) . 'css/bootstrap.min.css');
wp_enqueue_style('my-theme-main-style', trailingslashit(get_stylesheet_directory_uri()) . 'assets/css/main.min.css', ['bootstrap-3']);You are doing it wrong and it will cause your theme breaks!
Replace with this.// the commented out code below can be remove them entirely.
//wp_dequeue_style('bootstrap-style');
//wp_enqueue_style('bootstrap-3', trailingslashit(get_template_directory_uri()) . 'css/bootstrap.min.css');
wp_enqueue_style('my-theme-main-style', trailingslashit(get_stylesheet_directory_uri()) . 'assets/css/main.min.css', ['bootstrap-style']);
You must be logged in to reply to this topic.