admin管理员组文章数量:1332395
I have been trying to get the same code I have on my old server to work on my new server. This is the code I have thus far:
function enqueue_load_fa() {
wp_enqueue_style( 'load-fa', '.5.0/css/all.css' );
}
The issue I am having is that on my test site / it is not working but on my other one it is. See screenshot below: /DfNnwwV3ba3.png
Both servers have the same exact coding. I have tried 3 servers in all and only one of them has worked, with the same code. I am not understanding why it's not being accepted at all.
I have been trying to get the same code I have on my old server to work on my new server. This is the code I have thus far:
function enqueue_load_fa() {
wp_enqueue_style( 'load-fa', 'https://use.fontawesome/releases/v5.5.0/css/all.css' );
}
The issue I am having is that on my test site http://thedroidgamer.info/2018/11/25/hello-world/ it is not working but on my other one it is. See screenshot below: https://scrnshot.app/DfNnwwV3ba3.png
Both servers have the same exact coding. I have tried 3 servers in all and only one of them has worked, with the same code. I am not understanding why it's not being accepted at all.
Share Improve this question edited Nov 25, 2018 at 10:14 Jacob Peattie 44.1k10 gold badges50 silver badges64 bronze badges asked Nov 25, 2018 at 10:13 thedroidgamerthedroidgamer 111 silver badge3 bronze badges 3 |1 Answer
Reset to default 2Try this,
function enqueue_load_fa() {
wp_enqueue_style( 'load-fa', 'https://use.fontawesome/releases/v5.5.0/css/all.css' );
}
add_action( 'wp_enqueue_scripts', 'enqueue_load_fa');
本文标签: cssFont Awesome wpenqueuestyle
版权声明:本文标题:css - Font Awesome wp_enqueue_style 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742283278a2446488.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
add_action()
. Have you done that? – Jacob Peattie Commented Nov 25, 2018 at 10:14