How to add favicon to WordPress dashboard, login and registration page

In this tutorial I will explain how to add favicon image to Wordpress dashboard, login and registration page.

First, I will create a new function in my functions.php file:


function favicon() {
echo ' ';
}

Then I will use the add_action to specific where I want display my favicon:


add_action('login_head', 'favicon');
add_action('admin_head', 'favicon');

My Favicon will be visible on my Wordpress dashboard, login and registration page!









Leave a Comment