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
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
本文标签: wp enqueue styleHow to load css file in my menu in wordpress
版权声明:本文标题:wp enqueue style - How to load css file in my menu in wordpress 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742273784a2444805.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论