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.

Today In History

  •  
  •  

Comment

Leave a Reply

Note: Convet HTML, PHP, JavaScripts from Postable, before posting from comment section.
License: By submitting a comment here you grant this site a perpetual license to reproduce your words and name/Web site in attribution. Please use your real name or a pseudonym (i.e., pen name, alias, nom de plume) when commenting. If you add your site name, company name, or something completely random, I'll likely change it to whatever I want.