Last active
March 26, 2019 15:57
-
-
Save itzmekhokan/d5fe20a53f5203869b136fc3897dc817 to your computer and use it in GitHub Desktop.
Change the default login logo in wordpress
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 | |
function custom_loginlogo() { | |
echo '<style type="text/css"> | |
h1 a {background-image: url('.get_bloginfo('template_directory').'/images/login_logo.png) !important; } | |
</style>'; | |
} | |
add_action('login_head', 'custom_loginlogo'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment