How to Add Dashicons to WordPress Frontend

Dashicons is the official icon font since WordPress admin as of 3.8.

However, it will only be available within WordPress Admin. If you would like to include and use all these free icons at the frontend liked in the Pages, Posts and others, you can copy and paste the below code into your theme functions.php:

add_action( 'wp_enqueue_scripts', 'tt_load_dashicons_frontend' );
public function tt_load_dashicons_frontend() {
    wp_enqueue_style( 'dashicons' );
}
terrytsang

Share
Published by
terrytsang

Recent Posts

Unveiling the Mystery: Why Do We Call It ‘Startup’?

1. The Origin and The Meaning of Startup The word "start" refers to the beginning…

2 years ago

Get More Done in Less Time: 13 Must-Have AI Tools for Skyrocketing Your Productivity

=== #1: AI Chatbot === 1. ChatGPTGet Started here: https://chat.openai.comChatGPT, one of the most significant language…

2 years ago

Coffee Chat with Founder of Hai Kuang

Recently I had a great coffee chat with my old pal - Wei Ming, founder…

3 years ago

WooCommerce Custom Order Status “Processing”

Sometimes there is a need for a custom new order status for WooCommerce orders such…

3 years ago

Logo Design Ideas

Here is a list of logo branding ideas for your next business or startup:  …

3 years ago

Display Purchase Note in All WooCommerce Emails

Purchase Note from the Product Data will be displayed at the customer's new order which…

3 years ago