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(<?php echo get_bloginfo( 'template_directory' ) ?>/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>
Written by Rajesh Khatri
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Wordpress
Authors
Related Tags
#wordpress
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#