Hello!

Faced such a problem: I connected Font-Awesome icons to the site, but instead of the icons themselves, squares of this kind are displayed: enter image description here

The css file is connected and in it all the fonts are connected correctly (all paths are correctly indicated), what could be the problem and how to fix it? Thank you in advance!

  • Show html. Most likely you incorrectly prescribe the name of the classes. - Areshka
  • The same problem, only in the English version all the icons work fine, and in the Russian version the same squares are displayed. What is the problem? - Dmitry

2 answers 2

It is necessary to prescribe classes Font Awesome

for v5

<i class="fas fa-camera-retro"></i> 

for v4

 <i class="fa fa-camera-retro"></i> 
  • Indeed, there was no fa in the class registration, only fa-icon. Thank you very much! - krown_loki

The problem is that your css file cannot find fontawesome icon files. Most likely you have the wrong path in your css file. The fact that the shown squares indicates that your css file is successfully connected, it remains only to choose the correct path to the icons.

Can you make a tree of your site (file location)?