Add Bootstrap 5.3 via CDN
This commit is contained in:
@@ -35,7 +35,14 @@ add_action( 'after_setup_theme', 'wisdom1_setup' );
|
|||||||
* Enqueue scripts and styles.
|
* Enqueue scripts and styles.
|
||||||
*/
|
*/
|
||||||
function wisdom1_scripts() {
|
function wisdom1_scripts() {
|
||||||
wp_enqueue_style( 'wisdom1-style', get_stylesheet_uri(), array(), '1.1.0' );
|
// Enqueue Bootstrap CSS
|
||||||
|
wp_enqueue_style( 'bootstrap-style', 'https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css', array(), '5.3.3' );
|
||||||
|
|
||||||
|
// Enqueue Theme CSS (depends on Bootstrap so it loads after)
|
||||||
|
wp_enqueue_style( 'wisdom1-style', get_stylesheet_uri(), array( 'bootstrap-style' ), '1.1.0' );
|
||||||
|
|
||||||
|
// Enqueue Bootstrap JS Bundle (includes Popper)
|
||||||
|
wp_enqueue_script( 'bootstrap-script', 'https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js', array(), '5.3.3', true );
|
||||||
}
|
}
|
||||||
add_action( 'wp_enqueue_scripts', 'wisdom1_scripts' );
|
add_action( 'wp_enqueue_scripts', 'wisdom1_scripts' );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user