A hosted WordPress blogger doesn’t like to display the WordPress logo on his/her blog’s login page. So we are always trying to edit WordPress’s core files or installing plugins to replace the logo. A customized WordPress login is a nice touch to any blog/site. There should be no need to edit WordPress’s core files or install a plugin to replace the logo. To keep your site lean, kindly avoid adding loads of plugins that do little things like this.
How to Customize Your WordPress Login Logo?
In this note, I will show you how to replace your WordPress login logo with your own logo. Here's the simple script to replace your WordPress login logo with your own logo in under a minute. Simply add this to your theme's functions.php file:
function custom_login_logo(){ echo 'h1 a { background:url('.get_bloginfo('template_directory').'/images/your_logo.png) center bottom no-repeat !important; }';} add_action('login_head', 'custom_login_logo');
Replace the /images/your_logo.png
with your logo filename. Save the file. That’s it, you’re done. Now go to the login page and feel the difference. It is very simple. Isn’t it?. Happy blogging 🙂