Are you working on a client’s site that requires user login? Then why not give them a custom login logo to match the branding and keep the users from feeling alienated. In this article, we will show you how to change the login logo in WordPress.
First you need to open your theme’s functions.php file and then paste the following code:
function custom_loginlogo() { echo '<style type="text/css"> h1 a {background-image: url('.get_bloginfo('template_directory').'/images/login_logo.png) !important; } </style>'; } add_action('login_head', 'custom_loginlogo');
Don’t forget to keep a transparent logo file in your theme’s images folder either. It should be named login_logo.png or anything else if you decide to change the image path.