Created
February 22, 2023 10:54
-
-
Save gmmedia/fbb88f3c60d39ada86b0eb298c9c35f1 to your computer and use it in GitHub Desktop.
Add a Logo to the WordPress Login
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
<?php | |
// Add a Logo to the WordPress Login | |
add_action('login_head', 'bloggerpilot_loginlogo'); | |
function bloggerpilot_loginlogo() { | |
echo '<style type="text/css"> | |
h1 a { | |
background-image: url(https://bloggerpilot.com/wp-content/uploads/2021/06/logo.svg) !important; | |
width: 200px !important; | |
height: 42px !important; | |
background-size: 200px !important; | |
} | |
</style>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment