Customize WordPress login logo without a plugin

by Jean-Baptiste Jung on December 21, 2009

Nothing hard with this recipe. The only thing you have to do is to copy the following piece of code, and paste it on your functions.php file:

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');

This hack has been submitted by Rami. Thanks for your contribution!

Looking for WordPress hosting? Try WP Web Host. Prices starts at $5/month and you can try it for free!

Customize WordPress login logo without a plugin