Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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