WordPress Native Dashicons Font for Development

In one of my earlier post, I showed how to use WordPress native "Dashicons" font at the Back-End or the admin panel. Today, in this post I will show how to use use the Dashicons for Front-End development. It's fairly easy to implement. So, lets get started.

Copy the following snippet on the functions.php page of your current theme and update the page.

<?php
function ldashicons_front_end_support() { 
   wp_enqueue_style('dashicons'); }
add_action('wp_enqueue_scripts','dashicons_front_end_support');
?>

Now. all you need to do now is to head towards the Dashicons's Developer Resources page and start using the icon you desire with your CSS markups.

Related

Comments

Comments list