How To Change Default WordPress Logo On Login Screen

First published 7 February 2015

This article is from our archive. It is kept as it was first written, so some steps or versions may be out of date.

If you want to change the default WordPress logo on login screen, you can do it by adding this code to your functions.php file.
Create a folder named images in your theme directory and upload the image with the name admin_logo.png (or change the path or file name as you like.


function custom_admin_logo() {
echo '<style type="text/css">
#header-logo { background-image: url('.get_bloginfo('template_directory').'/images/admin_logo.png) !important; }
</style>';
}
add_action('admin_head', 'custom_admin_logo');
?>