How to change the login logo in WordPress

Do you want to add your own logo to the log-in page of your WordPress blog or website? The reasons for replacing the WordPress logo on the log-in page of your WordPress blog with your own can be multiple. You might be working on a client’s website that requires user login. Your website might be offering membership. A custom login logo to match the branding makes a very positive impression on your users. How to change the login logo in WordPress?

Copy the following code and add it to the functions.php file of your theme. As simple as that. Don’t forget to add your transparent logo to the ‘images’ folder inside the theme folder. You can also use any image, hosted anywhere. Just make sure that the background image is set properly.

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

Premium WordPress Themes

Reliable Web Hosting

Smart Web Worker strongly recommends HostGator for your website/blog hosting. Sign up for web hosting at just $3.96/month. Use the coupon code "SMARTBLOGGER25" to get 25% discount on any hosting packages. Get an account with HostGator now!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>