Home >Web Front-end >CSS Tutorial >Why Aren't My Bitcoin and Facebook Font Awesome 5 Icons Displaying?

Why Aren't My Bitcoin and Facebook Font Awesome 5 Icons Displaying?

Linda Hamilton
Linda HamiltonOriginal
2024-11-30 20:35:16880browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn