admin管理员组

文章数量:1331849

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
Add a comment  | 

1 Answer 1

Reset to default 0

You need to use the admin_enqueue_scripts hook. As you can imagine, you're not the first one to attempt that: Wordpress admin stylesheet

本文标签: wp enqueue styleHow to load css file in my menu in wordpress