Login Logo

<?php
/**
* Login Logo URL
*
*/
function ea_login_header_url( $url ) {
return esc_url( home_url() );
}
add_filter( 'login_headerurl', 'ea_login_header_url' );
add_filter( 'login_headertitle', '__return_empty_string' );
/**
* Login Logo
*
*/
function ea_login_logo() {
$dir = get_stylesheet_directory_uri() . '/assets/images';
?>
<style type="text/css">
.login h1 a {
background-image: url(<?php echo $dir;?>/[email protected]);
background-image: url(<?php echo $dir;?>/logo.svg), none;
background-size: contain;
background-repeat: no-repeat;
display: block;
overflow: hidden;
text-indent: -9999em;
width: 312px;
height: 66px;
}
</style>
<?php
}
add_action( 'login_head', 'ea_login_logo' );