How to add favicon to WordPress admin

When you start working on your website, the most important part is to make the site as best as possible for your audience. You buy and replace themes, customize each and every part of it, you add plugins and set them up to work and look great. There are thousands of lines of code you can rewrite to make the site better and there shouldn’t be an end – your site always has to grow.

But sometimes, you have to indulge yourself and make WordPress more personal. To be honest, you can spend months customizing the backend (admin area) of WordPress. For example, you can change the entire look of login screen. In this article, we will show you how to change admin favicon. That’s the one only you (admin) will see if you have placed the icon in the bookmark tab or on top of your browser tab.

If it’s not an icon you want to have, maybe you can use a certain color simply to distinguish your admin tab from dozens of tabs you have opened while working on your new site. Just an idea.

If you want to have a favicon for your visitor, read this article.

Talk, talk, talk… enough; let’s see the actual code which will allow you to setup your own admin favicon:

  1. Open functions.php file
  2. Copy and paste this code:
  3. add_action('admin_head', 'show_favicon');
    function show_favicon() {
    echo '<link href="paste the entire URL of an image here" rel="icon" type="image/x-icon">';
  4. Add image URL
  5. Save changes and refresh your admin pages if needed
  6. Enjoy your new admin favicon

Don’t have your own favicon? You can find a free one or create one from any picture you want.

Start Blog Book


This guide is an introduction to mastering the art of blogging. It provides easy to follow steps to start, maintain, and grow your blog.

Read the guide

Leave a Reply

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