【发布时间】:2020-10-31 17:23:38
【问题描述】:
大家好,我想在我的 wordpress 主题中手动添加字体真棒我已经链接了 fontawesome css 并将字体文件夹放在
D:\xampp\htdocs\wordpress2\wp-content\themes\twentysixteen
但是 font awesome 不适用?
【问题讨论】:
-
您在控制台中是否遇到任何错误?
-
你在标题中设置了字体真棒CSS路径吗?
-
@RajKumarBhardwaj 是的,我确实在 functions.php 文件中的函数二十六位脚本()中设置了它。
-
你能把你给functions.php的路径粘贴到这里吗
-
@RajKumarBhardwaj wp_enqueue_style('font-awesome.min', get_template_directory_uri() .'/css/font-awesome.min.css');
标签: css wordpress wordpress-theming font-awesome