How to change WordPress logo on admin login page without plugin

  • Sometimes you want to change logo on login page. you can easily change it without plugin.
  • Here my wordpress admin logo you can see in below screenshot.    
  • To change admin logo put below code in functions.php file and put a logo in your theme’s images/ directory.
function custom_login_logo() {
    echo '<style type="text/css">'.
             'h1 a { background-image:url('.get_bloginfo( 'template_directory' ).'/images/logo.png) !important; }'.
         '</style>';
}
add_action( 'login_head', 'custom_login_logo' );  
  • My wordpress logo on admin login is changed. You can see in below screenshot

Thank you 🙂

Blog Catagory : WORDPRESS