The font-awesome icon does not show up on Chrome

Viewed 38022

I meet problem that fontawesome Icon does not show up on Chrome. ( Safari and Moz both works fine ). Does anyone have a clew why this happened. Thanks All.

Here is the Snapshot:

enter image description here

I know that the default font path that fontawesome.min.css directs ../font/......, but I have changed path name to " ../fonts/ " for my project, still doesn't work. The icon never shows up.

9 Answers

Check if you have your Adblocker disabled. Sometimes chrome extensions can prevent the browser from showing the icons.

Disable the plugin: "Font Changer with Google Web Fonts™" I guess it comes as a default tool.

There must be multiple css files.. You should include all.min.css (or) all.css as it works well

Its because you need to provide the exact version of font awesome in the link tag of index.html . For me it was:

<link rel="stylesheet" 
      href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" 
      integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" 
      crossorigin="anonymous">

you can also visit https://fontawesome.com/start and search for the exact version you need in your application

I just solved this problem on one of my own sites. Only some of the icons didn't work. fa-pencil and fa-trash, specifically, failed. fa-user-plus and fa-envelope worked fine.

I'm not sure precisely what was messing with it, but one of the other css files (maybe bootstrap) was messing with the FA css. I moved my link to the FA css so it came after the other css links in the page, and it worked. I now have pencil and trash icons.

You should disable adblocking plugins in chrome, they sometimes can mistake Fontawesome icons for advertising.

Just add brand.js, solid.js, fontawesome.js file from your fontawesome folder, it did work for me.

<script defer src="../fontawesome/js/brands.js"></script>
<script defer src="../fontawesome/js/solid.js"></script>
<script defer src="../fontawesome/js/fontawesome.js"></script>
Related