Created
April 23, 2020 18:24
-
-
Save wpjess/e5d29a99371dca660884ab5c6c94ae63 to your computer and use it in GitHub Desktop.
WP custom 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
//////////////////////////////////////////////////////////////////// | |
// LOGIN LOGO | |
//////////////////////////////////////////////////////////////////// | |
function my_login_logo() { ?> | |
<style type="text/css"> | |
.login h1 { | |
background-image: url(<?php echo get_stylesheet_directory_uri(); ?>/images/logo.png); | |
padding-bottom: 30px; | |
background-repeat: no-repeat; | |
background-position: top center; | |
width:260px; | |
height:81px; | |
margin: 0 auto; | |
} | |
.login h1 a { background:transparent; } | |
</style> | |
<?php } | |
add_action( 'login_enqueue_scripts', 'my_login_logo' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment