Change the blue WordPress logo that is branding your various login pages? Create your custom login image, name it “custom-login-logo.png
”, and upload it to your theme’s /images/
directory. This code will take care of the rest:
// custom admin login logo
function custom_login_logo() {
echo '<style type="text/css">
h1 a { background-image: url('.get_bloginfo('template_directory').'/images/custom-login-logo.png) !important; }
</style>';
}
add_action('login_head', 'custom_login_logo');