How To: Change the Logo on your WordPress Login Page

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.

Web Hosting

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):

[php]// 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’);[/php]

Now when you go to your login page, you should see the WordPress logo replaced by your own logo.

Pretty neat huh?

Dave Clements

Dave Clements

Dave Clements runs Do It With WordPress and designs awesome websites and offers WordPress consulting services in his spare time, along with eating Wheat Thins, spending time with friends and family, watching Indie films and playing with his array of Apple products.

2 thoughts on “How To: Change the Logo on your WordPress Login Page

Comments are closed.