Skip to content

How To Add A Favicon To WordPress Admin Panel

In last post I showed you how to add a favicon image to your WordPress blog’s front-end, but what about the back-end? Yes, you can also add a favicon to WordPress admin panel, which is the back-end of your WordPress.

Lot of users edit WordPress’ core files for this task, but I strongly discourage that. Any changes you make to core files will be overwritten when you update WordPress. We will do it in an easier way.

Add following in your theme’s functions.php file, or into a custom plugin:

add_action('admin_head', 'show_favicon');
function show_favicon() {
echo '<link href="FAVICON IMAGE URL" rel="icon" type="image/x-icon">';

Replace FAVICON IMAGE URL in above code with the URL of your favicon image.

8 thoughts on “How To Add A Favicon To WordPress Admin Panel”

    1. function add_my_favicon() {
      $favicon_path = ‘put_favicon_icon_url’;

      echo ”;

      add_action( ‘wp_head’, ‘add_my_favicon’ ); //front end
      add_action( ‘admin_head’, ‘add_my_favicon’ ); //admin end

Leave a Reply

Your email address will not be published. Required fields are marked *