Method 2: Manually Change Admin Menu Icons with a Code Snippet
Posted: Sat Apr 19, 2025 3:50 am
The next method requires adding custom code to change the icons.
If you’ve never done this before, we recommend taking a quick look at our tutorial on adding custom code to WordPress .
The easiest and safest way to add custom code to WordPress is to use WPCode . It is the best WordPress code snippet plugin. It allows you to safely add custom code, CSS and HTML to your WordPress site without accidentally breaking anything.
Note: The plugin also has a free version, called WPCode Lite , that can get the job done. However, the pro pakistan telemarketing data version offers additional features that you might find useful.
Example 1. Replacing an icon using the default Dashicons
In this example, we will use the default Dashicons to replace an existing setting icon.
It is important to note that WordPress already loads Dashicons, which are highly optimized for performance. Therefore, using them does not affect the page loading speed .
That said, before running the code, you should note the following:
The URL of the menu item you want to edit
The name of the icon you want to use
First, you need to find the URL of the page for the menu item you want to customize. For example, let's say you want to change the icon for the “Publish” menu.
Move your mouse over the Publish menu and you will see the URL it links to in your browser's status bar at the bottom of the page. All you need is the final part of the URL, which in this case is edit.php.
If you’ve never done this before, we recommend taking a quick look at our tutorial on adding custom code to WordPress .
The easiest and safest way to add custom code to WordPress is to use WPCode . It is the best WordPress code snippet plugin. It allows you to safely add custom code, CSS and HTML to your WordPress site without accidentally breaking anything.
Note: The plugin also has a free version, called WPCode Lite , that can get the job done. However, the pro pakistan telemarketing data version offers additional features that you might find useful.
Example 1. Replacing an icon using the default Dashicons
In this example, we will use the default Dashicons to replace an existing setting icon.
It is important to note that WordPress already loads Dashicons, which are highly optimized for performance. Therefore, using them does not affect the page loading speed .
That said, before running the code, you should note the following:
The URL of the menu item you want to edit
The name of the icon you want to use
First, you need to find the URL of the page for the menu item you want to customize. For example, let's say you want to change the icon for the “Publish” menu.
Move your mouse over the Publish menu and you will see the URL it links to in your browser's status bar at the bottom of the page. All you need is the final part of the URL, which in this case is edit.php.