diff --git a/functions.php b/functions.php index 9803e3c..dbaceac 100644 --- a/functions.php +++ b/functions.php @@ -35,7 +35,14 @@ add_action( 'after_setup_theme', 'wisdom1_setup' ); * Enqueue scripts and styles. */ 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' );