Skip to content

Instantly share code, notes, and snippets.

@kadavre
Created November 11, 2013 11:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kadavre/7411512 to your computer and use it in GitHub Desktop.
Save kadavre/7411512 to your computer and use it in GitHub Desktop.
If you are tired of seeing the same old default “log in” logo, then you can change that to display a logo of your choice. To change the logo, you need to create and copy the new custom logo.png image into the image file in your root folder then copy and paste the following code into your functions.php file.
// login page logo
function custom_login_logo() {
echo '<style type="text/css">h1 a { background: url('.get_bloginfo('template_directory').'/companylogo.png) 50% 50% no-repeat !important; }</style>';
}
add_action('login_head', 'custom_login_logo');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment