Customise WordPress login logo
Just a quick little hack for WordPress users, like myself. The login page for WordPress is nice and simple, but it’s got a big WordPress logo on it, which might not suit your needs. This can be done easily with some plugins, but if you don’t want to mess around with plugins, you can edit your theme to change this!
To customise your login logo, simply add the following code to the bottom of your functions.php file within your theme:
function my_custom_login_logo() {echo ‘<style type=”text/css”>h1 a { background-image:url(‘.get_bloginfo(‘template_directory’).’/images/custom-login-logo.png) !important; }</style>’;}add_action(‘login_head’, ‘my_custom_login_logo’);
Once you’ve done that, simply upload your custom file into your theme’s images folder with the name custom-login-logo.png!
If you also want to change the link when you click the logo, add this code:
function put_my_url(){
return “http://www.nimraynn.net/”;
}add_filter(‘login_headerurl’, ‘put_my_url’);
Obviously, you’ll want to replace the http://www.nimraynn.net part!

