Skip to main content

Add a Favicon to Your WordPress Login Page and Admin Area

Wed, Oct 26th, 2022

Make your WordPress login page or admin area more eye-catching with a custom favicon. Follow this step-by-step guide to learn how.

If you’re like most WordPress developers and designers, you probably don’t include a favicon on your login page or admin area. But did you know that adding a favicon can improve the usability and appearance of these areas? In this post, I’ll show you how to add a favicon to your WordPress login page and admin area using a simple piece of code in your functions.php file. So if you’re ready to take your WordPress site to the next level, keep reading!

function add_site_favicon() {
    echo '<link rel="shortcut icon"
    href="url_to_your_favicon_image" />';
add_action('login_head', 'add_site_favicon');
add_action('admin_head', 'add_site_favicon');