Skip to content

Instantly share code, notes, and snippets.

@michaeloeser
Created January 15, 2013 09:28
Show Gist options
  • Save michaeloeser/4537493 to your computer and use it in GitHub Desktop.
Save michaeloeser/4537493 to your computer and use it in GitHub Desktop.
Customize WordPress Login Logo Without a Plugin
<?php
function my_custom_login_logo() {
echo '<style type="text/css">
h1 a { background-image:url('.get_bloginfo('template_directory').'/images/custom-login-logo.gif) !important; }
</style>';
}
add_action('login_head', 'my_custom_login_logo');
?>
@michaeloeser
Copy link
Author

This is great for people building websites for clients who want to have their own branding all over the installation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment