How to Disable Dashicons in WordPress?

Last updated
App Shah
Crunchify » Pro Plugins » How to Disable Dashicons in WordPress?
How to Disable Dashicons in WordPress? - Crunchify Tips

What is Dashicons in WordPress?

Dashicons is the official icon font of the WordPress admin as of 3.8. The icon font is licensed under GPLv2.

Dashicons are a set of icons included with WordPress that provide a simple and consistent way to add icons to your site. While dashicons can be useful for adding visual elements to your content, they can also slow down your site’s performance and increase the size of your page.

Disabling dashicons in WordPress can help improve site performance and reduce page size, especially if you are not using them extensively on your site.

Here are some reasons why you might want to disable dashicons in WordPress:

  1. Improved site performance: Disabling dashicons can help reduce the number of HTTP requests and page size, which can help improve site performance and speed.
  2. Reduced page size: By disabling dashicons, you can reduce the size of your page and improve page load times.
  3. Better security: Disabling dashicons can help improve site security by reducing the number of assets that can be used by attackers to exploit vulnerabilities.

To disable dashicons in WordPress, you can add the following code to your functions.php file:

How to Disable Dashicons in WordPress?

Add below code to theme’s functions.php file.

add_action( 'wp_enqueue_scripts', 'aiooc_crunchify_dequeue_dashicon' );

function aiooc_crunchify_dequeue_dashicon() {
	if ( current_user_can( 'update_core' ) ) {
	wp_deregister_style( 'dashicons' );

This code will remove the dashicons styles for non-logged-in users, which can help reduce page size and improve site performance. It’s important to note that disabling dashicons may affect the appearance of your site if you are using them extensively, so it’s important to test your site thoroughly after making this change.

Is there any other way to disable Dishicons using Plugin?


How to Disable Dashicons in WordPress?

That’s it. And you are all set.

Crunchy Booster is the Simplest WordPress Optimizer & Customizer Plugin!

It provides simplest, light weight, most powerful All-in-One 50+ Optimization, Customization, Webmaster, Database, Configuration, WordPress fine-tuning options in single plugin.

Leave a Comment