You should use login_enqueue_scripts, you can load styles or scripts with it.
Example:
function login_styles() {
wp_enqueue_style( 'loginCSS', '/my-styles.css', false );
}
add_action( 'login_enqueue_scripts', 'login_styles', 10 );
Related Posts:
- Include user defined styles without including wp-load
- Child theme .css files are not overriding their parent .css files
- str_replace inside specific css files [closed]
- Why do I get the timeout warning?
- Verify nonce in REST API?
- Add custom html to last sub-menu item
- Automatic image renaming based on title
- Manipulating post meta in the customizer
- Rearrange elements outputted by comment_form()
- How to build custom WP admin with custom URLs
- Custom editor field displaying HTML in Visual editor
- generate unique number when registering a user
- Php custom query function assistance
- How can I manage my multiple wordpress websites from main website?
- How to set default values for options page
- How do I go straight to “Edit More Details” when clicking on an item in the media library?
- Force pdf download not working when include blog-header.php
- How can I add a button to quicktags-toolbar?
- Passing page url into a custom field via the Press-This bookmarklet
- custom session variables being lost in FF [closed]
- Recommend an open source, template driven website builder UI that produces a working WordPress site [closed]
- How to link external JavaScript files?
- Where to add one custom end point and its function?
- Private member page
- For custom templates, is it better to use `template_include` or `type_template`?
- How to pass external variables to the wp_new_user_notification_email filter?
- Video to stretch across the entire homepage [closed]
- How can I allow access to multiple users, using the same login, at the same time?
- Does all editing of WordPress occur within the dashboard, or can we use our own text editor?
- Dynamic title in WordPress homepage
- TwentyFifteen: How can it show a different color on every post page?
- Hi, I wanted to make custom search with multiple fields
- Control Content On Non-Blog Pages
- How Can I Move Data From Form 1 To Form 2
- How to add custom control to a page?
- Navigation label for page in custom theme
- Auto login from custom registration form
- How to get Related Custom Posts?
- Background image not appearing
- Custom login with external provider iframe and data object
- custom upload directory only for plugin uploads
- Need help enqueueing webfonts
- get author in blog posts?
- Is it possible to change the structure of the HTML generated by the_content()? If yes, how? If not, is there a workaround?
- How to define custom links in WordPress
- Display specific Taxonomy Term from Custom Post Type
- Is it advisable to use `add_rewrite_rule()` to serve a custom page?
- Customizing the Widget content markup
- Widget title markup in register_sidebar
- Garbage in uploads folder
- What is theme-editor.tmp?
- More tag – how do I remove preceding ?
- What is the best way to modify Admin Panel on WordPress?
- How to customize shipping region/states on WooCommerce
- Stop Expansion of Top Level Menu in the WordPress Admin Sidebar
- Add or Create Custom Structure Tags to Permalink
- How do I create a root link in wordpress to a PDF file?
- Upload a web module (html and JS) to wordpress
- How to remove Customizer’s Section and move Control straight to Panel using Child Theme
- Remove welcome panel from contact form 7 page [closed]
- How to remove admin menu pages inserted by plugins and themes in the top admin bar?
- Do I need to instantiate the XMLRPC class or any class in another class to access its methods?
- Custom RSS feed – blank page
- Customizing admin look and feel for just one particular type of user
- How to query term_id of a Custom Taxonomy by name
- Different profile page by role
- WordPress menu: How to make www.link.com/#name never contain current_page_item class?
- 2.9 to 3.0: Pros and cons of upgrading?
- query_posts meta_key with current date
- Get custom field value from not-current page
- RSS feed showing deleted post
- Custom page template, not acting as page
- how or where wordress collect unlogged user session
- How to show parent taxonomy using get_the_terms?
- Customizing woocommerce product page
- No plugin populate user information in to form
- how to change the url rediction of the woocommerce login page of the flatsome theme for my own in wordpress?
- My list of terms of custom taxonomy displays 7 times
- Customizer options limited to specific user roles?
- Woocommerce custom “My Account” Tab – Add Save button
- WordPress Using Zip code customer shop find without woocommerce plugin
- Can’t do a src to node modules folder
- Woocommerce – Remove cart button depending product (post) status
- how can custom permalink structure use for specify custom post type
- Login CSS style doesn’t load instantly
- Embedded Options in a Custom Metabox
- Query Posts to display all posts with category “custom field value”
- Trouble getting started in wordpress – my experience isn’t in wordpress.
- How do I display entries in the top menu based on conditions selected in the sidebar menu?
- custom loop issue
- Customizer API and pages
- Bulk product editing in wordpress
- Editing a theme’s templates
- How to delete orphan userdata from array in wp-options
- Custom Style per Post, How to Display Custom-Styled Single post on Homepage?
- Twenty Eleven theme, how to change style to a specific “format”
- Search results load individual post in slide out div
- Show Site Name on WP login screen
- Adding css and js to a blank page created with custom template
- Conditional tag