Home >Web Front-end >CSS Tutorial >Why Aren't My Bitcoin and Facebook Font Awesome 5 Icons Displaying?
Font Awesome 5 icon display issue
After upgrading Font Awesome to version 5.0.8, some users are experiencing the inability to render Bitcoin and Facebook icon issues.
Solution:
Different Font Awesome 5 icon sets need to contain different CSS stylesheets. The Bitcoin and Facebook icons require the brands.css stylesheet:
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.8/css/brands.css" integrity="sha384-IiIL1/ODJBRTrDTFk/pW8j0DUI5/z9m1KYsTm/RjZTNV8RHLGZXkUDwgRRbbQ+Jh" crossorigin="anonymous">
Additionally, to render the Bitcoin and Facebook icons you need the correct class name using the fab prefix:
<i>
Full updated code snippet:
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.8/css/brands.css" integrity="sha384-IiIL1/ODJBRTrDTFk/pW8j0DUI5/z9m1KYsTm/RjZTNV8RHLGZXkUDwgRRbbQ+Jh" crossorigin="anonymous"> <i>
The above is the detailed content of Why Aren't My Bitcoin and Facebook Font Awesome 5 Icons Displaying?. For more information, please follow other related articles on the PHP Chinese website!