Skip to content

Instantly share code, notes, and snippets.

@petenelson
Last active October 7, 2015 18:48
Show Gist options
  • Save petenelson/3209338 to your computer and use it in GitHub Desktop.
Save petenelson/3209338 to your computer and use it in GitHub Desktop.
WordPress: Customized Login Page
// 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