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
Release: 2024-11-30 20:35:16
Original
947 people have browsed it

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">
Copy after login

Additionally, to render the Bitcoin and Facebook icons you need the correct class name using the fab prefix:

<i>
Copy after login

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>
Copy after login

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!

source:php.cn
Statement of this Website
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
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template