Created
May 5, 2020 23:39
-
-
Save soderlind/5efcf0fb53a37234f803c53a73c70dd2 to your computer and use it in GitHub Desktop.
custom logo in wp-login.php
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
// Add CSS within in wp-login, place in (child) theme functions.php | |
add_action('login_enqueue_scripts', function(){ | |
wp_enqueue_style('login-styles', get_stylesheet_directory_uri().'/login.css'); | |
}); | |
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.css, place in (child) theme folder | |
body .login h1 a { | |
background-image: url('path/to/custom-logo.png'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment