Skip to content

Instantly share code, notes, and snippets.

@jaredatch
Last active December 9, 2015 21:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaredatch/3604586 to your computer and use it in GitHub Desktop.
Save jaredatch/3604586 to your computer and use it in GitHub Desktop.
Load custom CSS on admin login page
<?php
/**
* Customize CSS for login screen
*
* @since 1.0.0
* @author Jared Atchison
* @link http://jaredatchison.com/code/
*/
function ja_login_screen_css() {
echo '<link rel="stylesheet" type="text/css" href="' . get_stylesheet_directory() . '/css/style-login.css" />' . "\n";
}
add_action( 'login_head', 'ja_login_screen_css', 1 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment