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.

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

add_action( 'wp_enqueue_scripts', 'enqueue_dashicons' );
Full Wordpress cheatsheet
Atlas VPN Atlas VPN