Why wp_enqueue_style() not working?
Question
I am new to wordpress, I am trying to develop a theme on localhost, I am trying to load style.css using this code in functions.php
function add_theme_scripts() {
wp_enqueue_style( 'style', get_stylesheet_uri() );
}
add_action( 'wp_enqueue_scripts', 'add_theme_scripts' );
And style.css is
body{background:green;}
But this code is not working
Can someone explain what i am doing wrong here ?
0
themes
4 years
2020-02-27T08:38:29-05:00
2020-02-27T08:38:29-05:00 0 Answers
58 views
0
Leave an answer