How To Add FontAwesome in your wordpress theme

WordPress Image

What is Font Awesome

Font Awesome gives you scalable vector icons that can instantly be customized — size, color, drop shadow, and anything that can be done with the power of CSS. You can read more about Font Awesome on their website

Step 1:

Download Font Awesome from their official website. Extract the downloaded zip file and copy paste fonts and css folder in your theme folder.

Step 2:

Add following codes in your theme's functions.php file.

function themename_fontawesome() {
wp_enqueue_style( 'fontawesome', get_template_directory_uri() . '/css/font-awesome.css', '', '4.7.0' );
add_action( 'wp_enqueue_scripts', 'themename_fontawesome' );

Step 3:

Now you can start using Font Awesome icons in your WordPress theme using code mentioned here.