I have imported a font awesome library in the header as
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
and I have in the body
<i class="fa-brands fa-medium"></i>
which does not render (is blank). I am trying to get the icon from this library,
but if I omit brands
I get a different medium icon.
2
Answers
Add
fa
class:You are loading a very old version of Font Awesome (4.7.0) but the documentation you link to is for the current version (6.3.0).
See Upgrade from version 4 which says:
fa-brands
is the icon style syntax that was introduced after the version of Font Awesome you are using was released.Upgrade to the current version.