How To Change WordPress Dashboard Login Logo

// Custom Logo in Dashboard

function my_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:65px;
width:320px;
background-size: 160px 60px;;
background-repeat: no-repeat;
        }
    </style>
<?php }
add_action( 'login_enqueue_scripts', 'my_login_logo' );


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

function my_login_logo_url_title() {
    return 'Linux Pathshala Limited Dashboard';
}
add_filter( 'login_headertitle', 'my_login_logo_url_title' );

// Custom Logo in Dashboard

Comments

Popular posts from this blog

Remove Add New Post Sub Menu From Custom Post

How To Remove and Add Visit Site Menu From WordPress Admin Bar?

Register Custom Post Type