Last Updated: February 25, 2016
·
1.069K
· rajeshkhatri13

Admin login page css change trick , paste in <em>function.php

<h2>Admin login page css change trick , paste in <em>function.php</em></h2>


function myloginlogo() { ?>
    <style type="text/css">
        body {
            background: url(<?php echo getbloginfo('templatedirectory') ?>/images/bkgrd.jpg) repeat scroll center 0 rgba(0, 0, 0, 0) !important;
        }
        html, .wp-dialog {
            background:none;
        }
        .login form{
            box-shadow:0 4px 10px -1px #000;
            }
        .login #nav, .login #backtoblog{text-shadow:none;}

    body.login div#login h1 a {
        background-image: url(&lt;?php echo get_bloginfo( 'template_directory' ) ?&gt;/images/header_bg.png);
        padding-bottom: 30px;
        background-size:auto;
        width:auto;
        height:110px;
    }
    body.login div#login h1{padding-bottom:114px;}
    #login {padding-top:0;}
</style>


<?php }
addaction( 'loginenqueuescripts', 'mylogin_logo' );
</code></pre>