Tagged: font awesome, icon
Hi,
I’m a bit confused about ENFOLD and Font Awesome’s current version 4.2.0, because I thought, that ENFOLD do work with Font Awesome, but this code won’t work (shows no icon at all):
<i class="fa fa-twitter"></i>
How can I ensure, that ENFOLD always work with the newest version of Font Awesome?
Thanks.
Hi COLORIT!
Please add following code to Functions.php file in Appearance > Editor
add_action( 'wp_enqueue_scripts', 'enqueue_font_awesome' );
function enqueue_font_awesome() {
wp_enqueue_style( 'font-awesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css' );
}
Cheers!
Yigit
Thank you, does this load FontAwesome twice, I mean the old version coming with the theme?
Hi!
I think you are confusing FontAwesome with Fontello – http://kriesi.at/documentation/enfold/adding-your-own-icon-fonts/
FontAwesome is not loaded on Enfold by default. This will load it so that you can use
Regards,
Yigit
ah okay, I understand, thanks a lot!