Font awesome (v5) icons are not displayed correctly (squares) )

Font awesome (v5) icons are not displayed correctly. Squares are displayed instead of icons. To connect the font, I use this code:

<link rel="stylesheet" href="path/to/font-awesome/css/font-awesome.min.css">
Author: olishevskyalex, 2018-10-09

1 answers

In general, it turned out that the whole thing was that I connected the file: fontawesome.min.css

<link rel="stylesheet" href="path/to/font-awesome/css/font-awesome.min.css">

So the font v4 was connected, and in v5 you need to connect this file: all.min.css

<link rel="stylesheet" href="path/to/font-awesome/css/all.min.css">

After I replaced the files, I lost the squares.

 0
Author: olishevskyalex, 2019-05-03 22:08:08