Created
November 4, 2013 16:40
-
-
Save DigitalEssence/7305389 to your computer and use it in GitHub Desktop.
Adding and enqueuing custom css to the login screen
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
// Add styling | |
function my_login_stylesheet() { | |
$mycustomcssurl = plugins_url( 'custom.css', __FILE__ ); | |
wp_register_style( 'custom-css', $mycustomcssurl,'','', 'screen' ); | |
wp_enqueue_style( 'custom-css' ); | |
} | |
add_action( 'login_enqueue_scripts', 'my_login_stylesheet' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment