Answer the question
In order to leave comments, you need to log in
How to connect fontawesome correctly?
I connect fontawesome 5 icons to the site. In some browsers everything works fine, but in some browsers a square is displayed. What could be the problem?
.prev
&:before
font-family: FontAwesome
content: '\f104'
font-size: 24px
Answer the question
In order to leave comments, you need to log in
I recently encountered such a problem ..
You have a 100% problem with the connection of the font itself, that is, the paths are not specified correctly - this is indicated by "and in some browsers a square is displayed" - in my case the font was installed on the PC, so I did not see the problem and others have seen
Look in the console for any errors. For example, CORS policy errors, or similar. Then take a look at the server settings.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question