What is the correct method for me to enqueue the main style.css and bootstrap.css? My example wont’ load

What is wrong with this code? I am building my first theme and I have tried many examples on the web and I can’t get my theme to register my bootstrap.css file.

function my_assets() {

wp_enqueue_style( ‘style’, get_stylesheet_uri());
wp_enqueue_style( ‘bootstrap’, get_stylesheet_directory_uri() . ‘cssbootstrap.css’ , false, null);

}

add_action( ‘wp_enqueue_scripts’, ‘my_assets’ );

Read more here:: What is the correct method for me to enqueue the main style.css and bootstrap.css? My example wont’ load

Leave a Reply

Your email address will not be published. Required fields are marked *