Anyone know how to load css file in my menu in wordpress. use this but it didn't work
function wmt_theme_style() {
wp_enqueue_style( 'bootstrap-styles', get_template_directory_uri() . '/css/bootstrap.css', array(), '3.3.4', 'all' );
}
add_action( 'wp_enqueue_scripts', 'wmt_theme_style' );
Anyone know how to load css file in my menu in wordpress. use this but it didn't work
function wmt_theme_style() {
wp_enqueue_style( 'bootstrap-styles', get_template_directory_uri() . '/css/bootstrap.css', array(), '3.3.4', 'all' );
}
add_action( 'wp_enqueue_scripts', 'wmt_theme_style' );
Share
Improve this question
edited Jul 10, 2020 at 23:17
fuxia♦
107k38 gold badges255 silver badges459 bronze badges
asked Jul 10, 2020 at 21:47
StymarkStymark
372 bronze badges
1 Answer
Reset to default 0You need to use the admin_enqueue_scripts
hook. As you can imagine, you're not the first one to attempt that: Wordpress admin stylesheet