• Would like my plugin’s stylesheet to appear in the header on the login page instead of the footer (as it does now). Am a little stuck! Thanks.

    add_action('login_enqueue_scripts', 'registration_scripts');
    function registration_scripts() {
        global $VERSION;
    
        wp_register_style('registration-styles',
            plugins_url('registration.css', __FILE__), array(),
            $VERSION, false );
    
        wp_enqueue_style('registration-styles');
    }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp_enqueue_style adding CSS to the footer on the login page’ is closed to new replies.