syedanam
10/17/2017 - 5:29 AM

WordPress AdminLogo Change

WordPress AdminLogo Change

/*
paste this code in theme functions.php file and fullfill your logo image path
*/



function my_login_logo() { ?>
    <style type="text/css">
        #login h1 a, .login h1 a {
            background-image: url(<?php echo get_stylesheet_directory_uri(); ?>/assets/images/site-login-logo.png);
		height:65px;
		width:160px;
		background-size: 160px 65px;
		background-repeat: no-repeat;
        padding-bottom: 20px;
        }
    </style>
<?php }
add_action( 'login_enqueue_scripts', 'my_login_logo' );