Created
February 12, 2014 14:23
-
-
Save raaar/8956412 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// add a new logo to the login page | |
function login_logo() { ?> | |
<style type="text/css"> | |
.login #login h1 a { | |
background-image: url( '<?php bloginfo('template_url') ?>/img/logo.png' ); | |
background-size: 300px auto; | |
height: 50px; | |
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader( | |
src='<?php bloginfo('template_url') ?>/img/logo.png', | |
sizingMethod='scale'); | |
-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader( | |
src='<?php bloginfo('template_url') ?>/img/logo.png', | |
sizingMethod='scale')"; | |
} | |
.login #nav a, .login #backtoblog a { | |
color: #847754 !important; | |
} | |
.login #nav a:hover, .login #backtoblog a:hover { | |
color: #3E3739 !important; | |
} | |
body.login{ | |
background: #ffffff !important; | |
} | |
p#backtoblog{ | |
display:none !important; | |
} | |
.login .button-primary { | |
} | |
.login .button-primary:hover { | |
} | |
</style> | |
<?php } | |
add_action( 'login_enqueue_scripts', 'login_logo' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment