Last active
April 6, 2023 00:50
-
-
Save Shininglow/a07930059ed11821290d6ab900b948d4 to your computer and use it in GitHub Desktop.
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 HEADER LOGO | |
function my_custom_login_logo() | |
{ | |
echo '<style type="text/css"'> h1 a { background-image:url(' . get_stylesheet_directory_uri() . '/assets/images/logo_admin.png) !important; } '</style'>'; | |
} | |
add_action('login_head', 'my_custom_login_logo'); |
Thank you, koraysels it works nicely!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
euhhmmm this is very wrongly escaped and probably never tested... the correct escaped verison is this