Last active
August 26, 2020 15:20
-
-
Save versluis/288eadc6e21508b1e51719014275def8 to your computer and use it in GitHub Desktop.
Changing your WordPress Login Logo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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