Skip to content

Instantly share code, notes, and snippets.

@DigitalEssence
Created November 4, 2013 16:40
Show Gist options
  • Save DigitalEssence/7305389 to your computer and use it in GitHub Desktop.
Save DigitalEssence/7305389 to your computer and use it in GitHub Desktop.
Adding and enqueuing custom css to the login screen
// 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