WordPress tutorials: Replace login logo

Wpsnipp – WordPress login logo looks nice, but sometimes you may want to change it, for example when building a site for a client. In that case, you can use a plugin, or simply take advantage of this cool hack.Adding this PHP code to the functions.php of your wordpress theme will allow you to replace the default wordpress login logo.

 

 

function loginLogo() {
echo '<style type="text/css">
h1 a { background-image:url('.get_bloginfo('template_directory').'/images/logo.gif) !important; }
</style>';
}
add_action('login_head', 'loginLogo');

Be Sociable, Share!

Leave a comment