1. Home
  2. Wordpress
  3. Enqueue dashicons

Enqueue WordPress dashicons to frontend. By default dashicons are only available in the admin area. Add the following code to the functions.php file to use WordPress icons anywhere in your website.

#wordpress
function enqueue_dashicons() {
   
   wp_enqueue_style( 'dashicons' );

}
add_action( 'wp_enqueue_scripts', 'enqueue_dashicons' );
copy
Full Wordpress cheatsheet
NordVPN NordVPN