Skip to content

Instantly share code, notes, and snippets.

@versluis
Last active August 26, 2020 15:20
Show Gist options
  • Save versluis/288eadc6e21508b1e51719014275def8 to your computer and use it in GitHub Desktop.
Save versluis/288eadc6e21508b1e51719014275def8 to your computer and use it in GitHub Desktop.
Changing your WordPress Login Logo
// add my own Login Logo
function guru_login_logo() { ?>
<style type="text/css">
#login h1 a, .login h1 a {
background-image: url(<?php echo get_stylesheet_directory_uri(); ?>/images/your-logo.png);
height:65px;
width:320px;
background-size: 320px 65px;
background-repeat: no-repeat;
padding-bottom: 10px;
}
</style>
<?php }
add_action( 'login_enqueue_scripts', 'guru_login_logo' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment