To use Dashicons (the default set used in the WP backend) we need to enable them also for the front-end of our WordPress site, because by default WP allows Dashicons only for the back-end or for registered admins.
Paste this code into your functions.php file
/********************************************************/ // Adding Dashicons in WordPress Front-end /********************************************************/ add_action( 'wp_enqueue_scripts', 'load_dashicons_front_end' ); function load_dashicons_front_end() { wp_enqueue_style( 'dashicons' ); }
One thought on “Enable Dashicons in WordPress Frontend”
Thank you very much!