Sammy30
10/6/2019 - 7:30 PM

Change WP Login logo

/* Change WP Login logo */

function ethis_login_logo() { ?>
    <style type="text/css">
        #login h1 a, .login h1 a {
            background-image: url(<?php echo get_stylesheet_directory_uri(); ?>/img/logo.png);
		height:90px;
		width:285px;
		background-size: 285px 90px;
		background-repeat: no-repeat;
        }
    </style>
<?php }
add_action( 'login_enqueue_scripts', 'ethis_login_logo' );

function ethis_login_logo_url() {
    return home_url();
}
add_filter( 'login_headerurl', 'ethis_login_logo_url' );