Font Awesome 5 KIT support

Add to functions.php and replace with your own kit url.

/**
 * Font Awesome KIT support
 */
add_action( 'wp_enqueue_scripts', function() {
	wp_dequeue_style( 'font-awesome' );
	wp_dequeue_style( 'font-awesome-5' );
	wp_deregister_style( 'font-awesome' );
	wp_deregister_style( 'font-awesome-5' );
	wp_enqueue_script( 'fa5-kit', 'https://kit.fontawesome.com/34kj34kj34.js' ); // replace with actual kit url
}, 99999 );
add_filter( 'fl_enable_fa5_pro', '__return_true' );
1 Like