WordPress Login Logo Change

Standard

Sharing is caring!

I have recently changed the login logo and URL for the WordPress Admin panel, here’s the code:

WordPress Login Logo Change
/**
* wordpress login logo change
*/
function my_login_logo_one() { 
?> 
<style type="text/css"> 
body.login div#login h1 a {
 background-image: url(/your-own-logo-image);  //Add your own logo image in this url 
	height:80px;
	width:295px;
	background-size: 295px 80px;
	background-repeat: no-repeat;
	padding-bottom: 0px; 
} 
</style>
 <?php 
} add_action( 'login_enqueue_scripts', 'my_login_logo_one' );


/**
* wordpress login logo URL change
*/
function my_login_logo_one_url() {
    return home_url();
}
add_filter( 'login_headerurl', 'my_login_logo_one_url' );

function my_login_logo_one_url_title() {
    return 'Your Site Name and Info';
}
add_filter( 'login_headertitle', 'my_login_logo_one_url_title' );

Sharing is caring!