Created
April 27, 2012 00:23
-
-
Save astockwell-ps/2504454 to your computer and use it in GitHub Desktop.
PHP: Customize WordPress login logo without a plugin
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
// Via http://www.wprecipes.com/customize-wordpress-login-logo-without-a-plugin | |
function my_custom_login_logo() { | |
echo '<style type="text/css"> | |
h1 a { background-image:url('.get_bloginfo('template_directory').'/images/custom-login-logo.gif) !important; } | |
</style>'; | |
} | |
add_action('login_head', 'my_custom_login_logo'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment