Hoping for some help here as I'm scratching my head. I'm trying to create a custom login page for my site which has gone rather well until I try to add in a custom CSS to make it look pretty. I'm trying to add in the style-login.css file using the following:
// add a custom css file for login page
function nb_login_style(){
wp_enqueue_style('nublue-login',
get_stylesheet_directory_uri() . '/style-login.css',
FALSE,
NULL,
all);
if ( ! has_action( 'login_enqueue_scripts', 'wp_print_styles' ) ){
add_action( 'login_enqueue_scripts', 'wp_print_styles', 11 );
}
}
add_action( 'login_enqueue_scripts', 'nb_login_style');
However the style-login.css file is never being inserted into the header of my page.
Any ideas?