Font Awesome laden via functions.php

Voeg deze code toe aan functions.php van je thema of Code Snippets.

/**
* Enqueue Font Awesome 5 Free
* @author Proxeuse
*/

add_action( 'wp_enqueue_scripts', 'enqueue_fontawesome' );

function enqueue_fontawesome() {
wp_enqueue_style('font-awesome-free', get_stylesheet_directory_uri().'/fonts/font-awesome/css/all.min.css', array(), '5.13.1');

}

 

Wil jij gratis WordPress tips in je inbox ontvangen?

Wij sturen maximaal 2 e-mails per maand. Beloofd!

Voornaam
Dit veld is bedoeld voor validatiedoeleinden en moet niet worden gewijzigd.