Family Encyclopedia >> Electronics

How to change the login logo in WordPress

Are you working on a client site that requires the user to log in? So why not give them a custom login logo to match the brand and keep users from feeling alienated? In this article, we will show you how to change the WordPress login logo.

First you need to open your theme's functions.php file and then paste the following code:

 function custom_loginlogo () echo 'h1 a background-image: url ('. get_bloginfo ('template_directory'). '/ images / login_logo.png)! important; '; add_action ('login_head', 'custom_loginlogo'); 

Don't forget to keep a transparent logo file in your theme's images folder. It should be called login_logo.png or something else if you decide to change the image path.

Take a look at the best of the best custom WordPress login page layouts