Last active
March 5, 2021 19:09
-
-
Save davinian/51717f9d06580c7a349e2d33887c049f to your computer and use it in GitHub Desktop.
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
/* Custom Login Logo */ | |
function my_login_logo() { ?> | |
<style type="text/css"> | |
body.login {background: #fff;} | |
#login h1 a, .login h1 a { background-image: url(<?php echo get_stylesheet_directory_uri(); ?>/images/login-logo.png); | |
height:65px; width:320px; background-size: 320px 65px; background-repeat: no-repeat; padding-bottom: 0px; } | |
#login label { color: #333333; } | |
#login .button-primary { background-color:#719b67; } | |
#login .button-primary:hover { background-color:#336633; } | |
#login #nav a:hover, #login #backtoblog a:hover, #login .privacy-policy-page-link a.privacy-policy-link, #login #login_error a { color:#336633; text-decoration: none; } | |
.login form {border: 0px none #fff!important; box-shadow: none!important;} | |
</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
Add to your child themes
functions.php
file — remember to also create a .png logo and save it aslogin-logo.png
in a folder calledimages
or change the code to point to another image/location.