Font Awesome 5.8.1 Not Loading IconsUse Font Awesome Icons in CSSFont awesome in IE7Optimize Font Awesome for only used classesUse font awesome icon as CSS contentArranging Font Awesome IconsFont-Awesome Icon not appearingfont-awesome fonts are not loaded into angular projectFont Awesome 5 - Choosing the correct font-family in CSS pseudo-elements
Find feasible point in polynomial time in linear programming
Should I ask for a raise one month before the end of an internship?
How many petaflops does it take to land on the moon? What does Artemis need with an Aitken?
What will be the immediate action by the pilot and ATC if any plane blocks the runway while landing?
How to prevent a hosting company from accessing a VM's encryption keys?
Is the Amazon rainforest the "world's lungs"?
Spicing up a moment of peace
Is it true that different variants of the same model aircraft don't require pilot retraining?
Modifing a GFF3 file and writting to a new file
What should be done with the carbon when using magic to get oxygen from carbon dioxide?
How do you say "half the time …, the other half …" in German?
bash: Replace single quote by two quotes in string
How does attacking during a conversation affect initiative?
The meaning of asynchronous vs synchronous
Employing a contractor proving difficult
What is Soda Fountain Etiquette?
Which polygons can be turned inside out by a smooth deformation?
Why did Starhopper's exhaust plume become brighter just before landing?
Why might one *not* want to use a capo?
Would it be better to write a trilogy over a much longer series?
Heat output from a 200W electric radiator?
What's the point of fighting monsters in Zelda BotW?
Can I lend a small amount of my own money to a bank at the federal funds rate?
Notice period 60 days but I need to join in 45 days
Font Awesome 5.8.1 Not Loading Icons
Use Font Awesome Icons in CSSFont awesome in IE7Optimize Font Awesome for only used classesUse font awesome icon as CSS contentArranging Font Awesome IconsFont-Awesome Icon not appearingfont-awesome fonts are not loaded into angular projectFont Awesome 5 - Choosing the correct font-family in CSS pseudo-elements
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
For some reason my icons are not loading for font awesome 5.8.1
All files are indeed being enqueued and are loaded on the page:
wp_enqueue_style( 'fontawesome-solid', 'https://use.fontawesome.com/releases/v5.8.1/css/solid.css', false, NULL, 'all' );
wp_enqueue_style( 'fontawesome-regular', 'https://use.fontawesome.com/releases/v5.8.1/css/regular.css', false, NULL, 'all' );
wp_enqueue_style( 'fontawesome-brands', 'https://use.fontawesome.com/releases/v5.8.1/css/brands.css', false, NULL, 'all' );
wp_enqueue_style( 'fontawesome', 'https://use.fontawesome.com/releases/v5.8.1/css/fontawesome.css', false, NULL, 'all' );
Code:
<span class="header-mob-phone"><i class="fas fa-phone"></i></span>
<span class="header-nav-icon"><i class="fas fa-bars"></i></span>
The outcome is just square boxes, no console errors and font-family is not being overwritten nor is font-weight or any other values from font awesome style sheet.
css wordpress font-awesome
|
show 4 more comments
For some reason my icons are not loading for font awesome 5.8.1
All files are indeed being enqueued and are loaded on the page:
wp_enqueue_style( 'fontawesome-solid', 'https://use.fontawesome.com/releases/v5.8.1/css/solid.css', false, NULL, 'all' );
wp_enqueue_style( 'fontawesome-regular', 'https://use.fontawesome.com/releases/v5.8.1/css/regular.css', false, NULL, 'all' );
wp_enqueue_style( 'fontawesome-brands', 'https://use.fontawesome.com/releases/v5.8.1/css/brands.css', false, NULL, 'all' );
wp_enqueue_style( 'fontawesome', 'https://use.fontawesome.com/releases/v5.8.1/css/fontawesome.css', false, NULL, 'all' );
Code:
<span class="header-mob-phone"><i class="fas fa-phone"></i></span>
<span class="header-nav-icon"><i class="fas fa-bars"></i></span>
The outcome is just square boxes, no console errors and font-family is not being overwritten nor is font-weight or any other values from font awesome style sheet.
css wordpress font-awesome
maybe they are PRO version ?
– Temani Afif
Mar 27 at 21:26
@TemaniAfif neither icon is pro version, I wish it was that simple
– Daniel Vickers
Mar 27 at 21:27
and are you sure the font awesome CSS is loading?
– Temani Afif
Mar 27 at 21:27
@TemaniAfif of course (i.imgur.com/WwKrTOl.png)
– Daniel Vickers
Mar 27 at 21:29
a link to the website?
– Temani Afif
Mar 27 at 21:30
|
show 4 more comments
For some reason my icons are not loading for font awesome 5.8.1
All files are indeed being enqueued and are loaded on the page:
wp_enqueue_style( 'fontawesome-solid', 'https://use.fontawesome.com/releases/v5.8.1/css/solid.css', false, NULL, 'all' );
wp_enqueue_style( 'fontawesome-regular', 'https://use.fontawesome.com/releases/v5.8.1/css/regular.css', false, NULL, 'all' );
wp_enqueue_style( 'fontawesome-brands', 'https://use.fontawesome.com/releases/v5.8.1/css/brands.css', false, NULL, 'all' );
wp_enqueue_style( 'fontawesome', 'https://use.fontawesome.com/releases/v5.8.1/css/fontawesome.css', false, NULL, 'all' );
Code:
<span class="header-mob-phone"><i class="fas fa-phone"></i></span>
<span class="header-nav-icon"><i class="fas fa-bars"></i></span>
The outcome is just square boxes, no console errors and font-family is not being overwritten nor is font-weight or any other values from font awesome style sheet.
css wordpress font-awesome
For some reason my icons are not loading for font awesome 5.8.1
All files are indeed being enqueued and are loaded on the page:
wp_enqueue_style( 'fontawesome-solid', 'https://use.fontawesome.com/releases/v5.8.1/css/solid.css', false, NULL, 'all' );
wp_enqueue_style( 'fontawesome-regular', 'https://use.fontawesome.com/releases/v5.8.1/css/regular.css', false, NULL, 'all' );
wp_enqueue_style( 'fontawesome-brands', 'https://use.fontawesome.com/releases/v5.8.1/css/brands.css', false, NULL, 'all' );
wp_enqueue_style( 'fontawesome', 'https://use.fontawesome.com/releases/v5.8.1/css/fontawesome.css', false, NULL, 'all' );
Code:
<span class="header-mob-phone"><i class="fas fa-phone"></i></span>
<span class="header-nav-icon"><i class="fas fa-bars"></i></span>
The outcome is just square boxes, no console errors and font-family is not being overwritten nor is font-weight or any other values from font awesome style sheet.
css wordpress font-awesome
css wordpress font-awesome
asked Mar 27 at 21:17
Daniel VickersDaniel Vickers
6421 gold badge3 silver badges18 bronze badges
6421 gold badge3 silver badges18 bronze badges
maybe they are PRO version ?
– Temani Afif
Mar 27 at 21:26
@TemaniAfif neither icon is pro version, I wish it was that simple
– Daniel Vickers
Mar 27 at 21:27
and are you sure the font awesome CSS is loading?
– Temani Afif
Mar 27 at 21:27
@TemaniAfif of course (i.imgur.com/WwKrTOl.png)
– Daniel Vickers
Mar 27 at 21:29
a link to the website?
– Temani Afif
Mar 27 at 21:30
|
show 4 more comments
maybe they are PRO version ?
– Temani Afif
Mar 27 at 21:26
@TemaniAfif neither icon is pro version, I wish it was that simple
– Daniel Vickers
Mar 27 at 21:27
and are you sure the font awesome CSS is loading?
– Temani Afif
Mar 27 at 21:27
@TemaniAfif of course (i.imgur.com/WwKrTOl.png)
– Daniel Vickers
Mar 27 at 21:29
a link to the website?
– Temani Afif
Mar 27 at 21:30
maybe they are PRO version ?
– Temani Afif
Mar 27 at 21:26
maybe they are PRO version ?
– Temani Afif
Mar 27 at 21:26
@TemaniAfif neither icon is pro version, I wish it was that simple
– Daniel Vickers
Mar 27 at 21:27
@TemaniAfif neither icon is pro version, I wish it was that simple
– Daniel Vickers
Mar 27 at 21:27
and are you sure the font awesome CSS is loading?
– Temani Afif
Mar 27 at 21:27
and are you sure the font awesome CSS is loading?
– Temani Afif
Mar 27 at 21:27
@TemaniAfif of course (i.imgur.com/WwKrTOl.png)
– Daniel Vickers
Mar 27 at 21:29
@TemaniAfif of course (i.imgur.com/WwKrTOl.png)
– Daniel Vickers
Mar 27 at 21:29
a link to the website?
– Temani Afif
Mar 27 at 21:30
a link to the website?
– Temani Afif
Mar 27 at 21:30
|
show 4 more comments
1 Answer
1
active
oldest
votes
Ensure the font-weight is right. I had the same issue when using content codes in span tags, but adding font-weight: 900 solved it.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55386599%2ffont-awesome-5-8-1-not-loading-icons%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Ensure the font-weight is right. I had the same issue when using content codes in span tags, but adding font-weight: 900 solved it.
add a comment |
Ensure the font-weight is right. I had the same issue when using content codes in span tags, but adding font-weight: 900 solved it.
add a comment |
Ensure the font-weight is right. I had the same issue when using content codes in span tags, but adding font-weight: 900 solved it.
Ensure the font-weight is right. I had the same issue when using content codes in span tags, but adding font-weight: 900 solved it.
edited May 7 at 14:03
Martin Schneider
5,5061 gold badge38 silver badges48 bronze badges
5,5061 gold badge38 silver badges48 bronze badges
answered May 7 at 12:57
BazooBazoo
111 bronze badge
111 bronze badge
add a comment |
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55386599%2ffont-awesome-5-8-1-not-loading-icons%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
maybe they are PRO version ?
– Temani Afif
Mar 27 at 21:26
@TemaniAfif neither icon is pro version, I wish it was that simple
– Daniel Vickers
Mar 27 at 21:27
and are you sure the font awesome CSS is loading?
– Temani Afif
Mar 27 at 21:27
@TemaniAfif of course (i.imgur.com/WwKrTOl.png)
– Daniel Vickers
Mar 27 at 21:29
a link to the website?
– Temani Afif
Mar 27 at 21:30