Skip to content

Instantly share code, notes, and snippets.

@mauriciogofas
Created February 22, 2015 04:54
Show Gist options
  • Select an option

  • Save mauriciogofas/1589380562a9888aef60 to your computer and use it in GitHub Desktop.

Select an option

Save mauriciogofas/1589380562a9888aef60 to your computer and use it in GitHub Desktop.
Logo personalizado em wp-login.php
// Logo Padrão no Login
function gofas_wp_login_image() {
echo "
<style>
body.login #login h1 a {
background: url('".get_bloginfo('url')."/uploads/logo.png') 0px 0 no-repeat transparent;
height:50px;
width:160px; }
</style>
";
}
add_action("login_head", "gofas_wp_login_image");
// END Logo Padrão no Login
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment