How to Enqueue the style.css

//Stylesheet and script inclusion
function add_theme_scripts() {
$theme_data = wp_get_theme();
wp_enqueue_style('main-style', get_template_directory_uri() . '/style.css', '', $theme_data['version'], 'all');
}
add_action( 'wp_enqueue_scripts', 'add_theme_scripts' );

Leave a comment

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