How to change logo of wordpress in login page

If you are working on a client’s site that requires user login? Then you have need to change logo of wordpress login page.
In this article, I will teach you oe show you how to change the login logo in WordPress.
Just you need to open your theme’s functions.php and then copy paste the following code.

function my_login_logo() 
    { ?>
      <style type="text/css">
        #login h1 a, .login h1 a 
         {
            background-image: url(<?php echo get_bloginfo('template_directory'); ?>/images/logo.jpg) !important;
            background-size: 100% !important;
            width: 100% !important;
            height: 90px !important;
         }
     </style>
    <?php }
add_action( 'login_head', 'my_login_logo' );

Note : You don’t have need to change anything, only make sure your logo image url is right or not.

I hope you like this Article. Share with your friends.

About Author

My name is Mukesh Jakhar and I am a Web Application Developer and Software Developer, currently living in Jaipur, India. I have a Master of Computer Application in Computer Science from JNU Jaipur University. I loves to write on technology and programming topics. Apart from this, I love to travel and enjoy the beauty of nature.

Sign up for weekly update

Milkshake is almost ready. If you're interested in testing it out, then sign up below to get exclusive access.