Last active
March 21, 2017 20:01
-
-
Save marcosnakamine/059e256ae08510056d1bdd6b2dfb65b2 to your computer and use it in GitHub Desktop.
WordPress - Change login logo
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_action( 'login_head', 'custom_login_logo' ); | |
function custom_login_logo() { | |
echo ' | |
<style type="text/css"> | |
h1 a { background-image: url('.get_template_directory_uri().'/img/new-logo.png) !important; } | |
</style> | |
'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment