I'm using (the excellent) Font-Awesome in my site, and it's working fine, if I use it this way:
<i class="icon-home"></i>
But (for some reasons) I want to use it in the Unicode way, like:
<i></i>
But it doesn't work - the browser shows a square instead.
How do I solve this? The CSS path is correct (as the first way of using Font Awesome works).
Edit: I do have the FontAwesome.otf installed.
For those who may stumble across this post, you need to set
as a property in your CSS selector and then unicode will work fine in CSS
After reading the answer of davidhund on this page I came up with a solution that your web font isn't loaded correctly that me be a issue of wrong paths.
Here is what he said:
And also look at the font-gotchas :)
Hope I am clear and helped you :)
On the same page, f135ta said:
There are three different font families that I know of that you can choose from and each has its own weight element that needs to be applied:
First
font-family: 'Font Awesome 5 Brands'; content: "\f373";
Second
font-family: 'Font Awesome 5 Free'; content: "\f061"; font-weight: 900;
Third
font-family: 'Font Awesome 5 Pro';
Reference here - https://fontawesome.com/how-to-use/on-the-web/advanced/css-pseudo-elements
Hope this helps.
I found that this worked
It didn't seem to work without the !important for me.
Here's a tutorial on how to change social icons with Unicodes https://www.youtube.com/watch?v=-jgDs2agkE0&feature=youtu.be
I have found that in Font-Awesome version 5 (free), you have you add: "font-family: Font Awesome\ 5 Free;" only then it seems to be working properly.
This has worked for me :)
I hope some finds this helpful
I got a simillary problem using unicode and fontawesome. when i wrote :
On google chrome, a square appear instead of the icon. The new version of Font Awesome also requires
That's work for me.
From : https://github.com/FortAwesome/Font-Awesome/issues/11946
Hope that's will help.