Hot To Add Font Awesome External CSS Stylesheet Sitewide

If you want to add Font Awesome’s external stylesheet to your head section sitewide in wordpress, add the following code to your child theme’s functions.php file…

function mazz_add_font_awesome() {
wp_enqueue_style( 'font-awesome', 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css' );
}
add_action( 'wp_enqueue_scripts', 'mazz_add_font_awesome' );

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.