Skip to content

Instantly share code, notes, and snippets.

@danielmcclure
Created December 20, 2018 23:07
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielmcclure/d1b8e492bedcced7c8016ed37f197623 to your computer and use it in GitHub Desktop.
Save danielmcclure/d1b8e492bedcced7c8016ed37f197623 to your computer and use it in GitHub Desktop.
Enqueue Font Awesome 5 in WordPress
<?php
// Enqueue Font Awesome 5 in WordPress
function tme_load_font_awesome() {
// You can find the current URL for the latest version here: https://fontawesome.com/start
wp_enqueue_style( 'font-awesome-free', '//use.fontawesome.com/releases/v5.6.3/css/all.css' );
}
add_action( 'wp_enqueue_scripts', 'tme_load_font_awesome' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment