By default, the login page to your admin area has the WordPress logo above the login form. But you can very easily change that to any image of your choice. This is perfect for branding your login page, particularly if you’re providing a site for a client, or you have a multi-author blog.
It really doesn’t require much at all. Simply paste this following function into your functions.php file (in wp-content/themes/yourthemefolder/) and change the filename to the filename of your logo. Just be sure to upload the logo file to the images directory of your current theme (or alternatively, change the complete URL in the function below):
// Custom Login Logo //
function diww_custom_login_logo() {
echo '<
h1 a { background-image:url('.get_bloginfo('template_directory').'/images/diww-login-logo.png) !important; }
>';
}
add_action('login_head', 'diww_custom_login_logo');
Now when you go to your login page, you should see the WordPress logo replaced by your own logo.

Pretty neat huh?


12 Comments
Dave,
Good to see you’re doing guest posting. Nice post, by the way. Tweeted…
Have a great day !
it was very helpful
Leave a Reply