Skip to content

Instantly share code, notes, and snippets.

@smonteverdi
Created July 16, 2012 17:43
Show Gist options
  • Save smonteverdi/3123964 to your computer and use it in GitHub Desktop.
Save smonteverdi/3123964 to your computer and use it in GitHub Desktop.
WordPress: Custom login logo
// Change Login Logo
add_action("login_head", "my_login_head");
function my_login_head() {
echo "
<style>
body.login #login h1 a {
background: url('".get_bloginfo('template_url')."/assets/images/admin-logo.png') no-repeat scroll center top transparent;
height: 128px;
width: 325px;
}
</style>
";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment