Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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