I’m building a WordPress site with Understrap, customizing a child theme.
The way I understand it, the theme comes with Font Awesome installed.
I’m attempting to add some icons, like so:
<i class="fab fa-facebook"></i>
But all I see in the browser is what looks like a weird slanted hamburger. See Image
It looks like the styles are being pulled in when I inspect. See Image
Not sure what I’m missing. Is there some special step I need to take to activate Font Awesome? Everything’s being imported correctly as far as I can tell. I’m just using the default child theme.
3
Answers
First check the page source to see if the parent theme styles have been enqueued or not. You must use the following code to load parent theme style. Put this code in the child theme functions.php file :
Try and redeclare the font:
Sometimes it gets overridden by other :before fonts
Uses font awesome 4.7
https://fontawesome.com/v4/icon/facebook