How to change color of icons in Font Awesome 5?

Font Awesome 5 uses svg for icons and path inside are set with fill:currentColor so simply change color of svg: .icons svg { color:#2759AE; } <script defer src=”https://use.fontawesome.com/releases/v5.5.0/js/all.js”></script> <div class=”container mt200 icons”> <div class=”col-md-3″> <div class=”bggray2 text-center”> <i class=”fas fa-microphone fa-5x”></i> <div class=”title”>LOREM</div> <div class=”text”>Vestibulum ac diam sit amet quam vehicula elementum sed sit amet … Read more

I can’t get my font-awesome icons to show up. Tried importing css with multiple methods

You need to use the fas class and the pencil one will not show because it belong to the PRO package1 (https://fontawesome.com/icons/pencil?style=solid) ul a { text-decoration:none; font-size:25px; } <link rel=”stylesheet” href=”https://use.fontawesome.com/releases/v5.13.0/css/all.css”> <ul class=”special”> <li><i class=”fas fa-pencil” title=”Edit”></i></li> <li><a href=”#” class=”fas fa-search”><span class=”label”>Magnifier</span></a></li> <li><a href=”#” class=”fas fa-tablet”><span class=”label”>Tablet</span></a></li> <li><a href=”#” class=”fas fa-flask”><span class=”label”>Flask</span></a></li> <li><a href=”#” class=”fas … Read more

Font Awesome 5 unicode

If you are using the JS+SVG version read this: Font Awesome 5 shows empty square when using the JS+SVG version The difference between the regular and the solid version is the font-weight. You simply need to adjust this one to swap between both version: input.star:checked ~ label.star:before { content: ‘\f005’; color: #e74c3c; transition: all .25s; … Read more

Font Awesome 5 – why aren’t icons like bitcoin, facebook, twitter showing?

You also need to use the brands.css stylesheet in font-awesome 5.0.8. Additionally, you need to make sure your class names are up to date. Try the snippet below: <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”> <link rel=”stylesheet” href=”https://use.fontawesome.com/releases/v5.0.8/css/fontawesome.css” integrity=”sha384-q3jl8XQu1OpdLgGFvNRnPdj5VIlCvgsDQTQB6owSOHWlAurxul7f+JpUOVdAiJ5P” crossorigin=”anonymous”> <i class=”fab fa-btc”></i> <i class=”fab fa-bitcoin”></i> Alternatively, you can just use the all.css stylesheet to include all … Read more

Font Awesome 5, why is CSS content not showing?

If you are using the JS+SVG version Read this: Font Awesome 5 shows empty square when using the JS+SVG version First, you only need to include the CSS file of Font Awesome 5 either in the head tag using: <link rel=”stylesheet” href=”https://use.fontawesome.com/releases/v5.13.0/css/all.css”> Or within the CSS file: @import url(“https://use.fontawesome.com/releases/v5.13.0/css/all.css”) Then you need to correct the … Read more

Font Awesome 5 on pseudo elements shows square instead of icon

If you are using the JS+SVG version read this: Font Awesome 5 shows empty square when using the JS+SVG version You need to add font-weight:900 .myClass { font-size:45px; } .myClass::after { font-family: ‘Font Awesome 5 Free’; content: “\f008″; font-weight: 900; } <link rel=”stylesheet” href=”https://use.fontawesome.com/releases/v5.13.0/css/all.css”> <span class=”myClass”></span> The regular version of the icon, defined by the … Read more