Created
February 25, 2018 20:40
-
-
Save carlitoescobar/330276cba7a015b70f99d825b6306653 to your computer and use it in GitHub Desktop.
This file contains 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
<?php | |
/** | |
* A new logo for the admin area and an own background color | |
* @author Andreas Hecht | |
*/ | |
function ah_login_logo() { | |
?> | |
<style type="text/css"> | |
#login h1 a, .login h1 a { | |
background-image: url(<?php echo get_stylesheet_directory_uri(); ?>/images/dein-logo.png); | |
margin-bottom: 0; | |
background-size: 180px; | |
height: 180px; | |
width: 180px; | |
margin-left: auto; | |
margin-right: auto; | |
border-radius: 50%; | |
} | |
body.login {background-color: #0073bf;} .login #backtoblog a, .login #nav a {color: #fff !important} | |
</style> | |
<?php } | |
add_action( 'login_enqueue_scripts', 'ah_login_logo' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment