How to change the WordPress login screen

avatar
Share This:

Put the following in functions.php. Replace “Your Logo Here” and “Your URL Here” with your own.

function custom_login_logo() {
    echo '<style type="text/css">
        .login h1 a {
          background-image: url(https://sitecreation.genxnotes.com/wp-content/uploads/2023/04/avatar.png) ; // Your Logo Here
          background-position: center center;
		  background-size: contain;
	      width: 100%;
        }
    </style>';
}
add_action('login_head', 'custom_login_logo');

function login_url(){
return "https://sitecreation.genxnotes.com"; // Your URL Here
}
add_filter('login_headerurl', 'login_url');

Comments

Leave a Reply

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

15 + seventeen =