最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

wp enqueue style - How to load css file in my menu in wordpress

programmeradmin1浏览0评论

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

发布评论

评论列表(0)

  1. 暂无评论