Created
August 22, 2018 15:20
-
-
Save VirtuBox/3a5e3e5d684efc55d9b1d24eaf6b2985 to your computer and use it in GitHub Desktop.
[WordPress] Replace WordPress logo on the page wp-login.php
This file contains hidden or 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 admin login logo | |
function custom_login_logo() { | |
echo '<style type="text/css"> | |
h1 a { background-image: url(' . get_stylesheet_directory_uri() . '/images/logo.png) !important; } | |
</style>'; | |
} | |
add_action('login_head', 'custom_login_logo'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment