PHP Code Snippet

As WordPress developers, we’ve all been there. We have created a fantastic looking website and the client is super happy with it, except the WordPress Login screen doesn’t match the clients expectations. As perfectionists we want to complete the experience for the client.

All you need to do is create a small function in your theme’s functions.php file. Using the small code snippet below is all you need.

 

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