Wordpress isn't pulling font

I'm using the maxcdn font-awesome url: https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css

The CSS pulls in fine and points to the fonts as expected (I can go to the file's the css references and they are there). However, in Chrome, the fonts aren't listed as resource and all font-awesome characters are a square. I've tried adding the fonts locally but I get the same result.

I also tested it against TwentySixteen and it didn't work there either.

I get the same result if I host the fonts and css myself. I've tested the font location in the css file and it points to the fonts correctly.


Scenario 1 : Check Permission (press f12 and see console for error).

Scenario 2 : Add fonts using wp_enqueue_style in function.php (footer = true).

After that clear cache or you can check on incognito.

链接地址: http://www.djcxy.com/p/88388.html

上一篇: 装饰“和”后“伪

下一篇: WordPress的不拉字体