Last active
October 7, 2015 18:48
-
-
Save petenelson/3209338 to your computer and use it in GitHub Desktop.
WordPress: Customized Login Page
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
// customized login page CSS | |
// from http://www.wpsyntax.com/wordpress/7-functions-white-label-wordpress | |
add_action('login_head', 'my_theme_custom_login'); | |
function my_theme_custom_login() { | |
echo '<style type="text/css"> | |
h1 a { background-image:url('.get_stylesheet_directory_uri().'/img/logo-login-274-63.png) !important; } | |
</style>'; | |
} | |
// link login page logo to the site's URL instead of wordpress.org | |
add_filter( 'login_headerurl', 'my_theme_the_url' ); | |
function my_theme_the_url( $url ) { | |
return get_bloginfo( 'wpurl' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment