Customize WordPress Admin Login Logo

UPDATE
If you are looking for a plugin that does this, take a look at Eazy Login Logo

Adding a custom logo to the WordPress admin screen is a simple three step process that can give your website a personalized touch.
The parts that display the login form information are the logo image, the link and the title tag. We can use WordPress’ built in functions to change out all three of these to show your logo.


function my_login_logo() { 
   <style type="text/css">
        .login h1 a {
            background-image: url(/library/images/rs-logo.svg);
        }
    </style >
}

function my_login_logo_url() {
    return home_url();
}

function my_login_logo_url_title() {
    return 'Your Site Name and Info';
}

add_action( 'login_enqueue_scripts', 'my_login_logo' );
add_filter( 'login_headerurl', 'my_login_logo_url' );
add_filter( 'login_headertitle', 'my_login_logo_url_title' );


Leave a Reply

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