Yes unfortunately that your code does not work.
I use this code:
/**
* Custom admin login header logo
*/
function custom_login_logo() {
echo '<style type="text/css">
h1 a { background-image: url(/wp-content/uploads/2015/10/logo.png) !important;
background-size: 100% 100% !important;
background-position: center center !important;
height: 45px !important;
width: 300px !important;
margin-left: 10px !important;
}
</style>';
}
add_action('login_head', 'custom_login_logo');
you know me, then help me to turn off the logo its function?