How to add a stylesheet to your WordPress login screen

Categorised: WordPress guides
Posted by aaron. Last updated: November 5, 2025

How to add a stylesheet to your WordPress login screen

Adding a stylesheet to your wp-login.php screen gives you a great amount of customizability. Styling your login screen right can give your users the ability to log in without feeling as if they have left your website’s frontend.

Copy and paste the snippet below in your child themes functions.php file.

Enqueing a stylesheet on the WordPress Login screen.


function toast_custom_login_stylesheet() {
wp_enqueue_style( 'custom_login_styling', get_stylesheet_directory_uri() . '/style-login.css' );
}

//This loads the function above on the login page
add_action( 'login_enqueue_scripts', 'toast_custom_login_stylesheet' );

Once you have inserted the snippet into your child themes functions.php file you’ll just need to add the style-login.css file to your child themes directory which you can do via FTP or Hosting.

Recent posts

June 3, 2026

Why Your WordPress Site Needs a Better Mobile Menu

A better mobile menu presents a better site experience all round. If you want to convert more visitors on mobile devices, you need to make sure you have a decent mobile menu.

Why-Does-Your-WordPress-Site-Needs-a-Better-Mobile-Menu
November 5, 2025

How to add fees and discounts at the checkout in WooCommerce

Here is a snippet of code to your child theme’s functions.php file or via a plugin that allows custom functions…

November 5, 2025

How to add a stylesheet to your WordPress login screen

How to add a stylesheet to your WordPress login screen Adding a stylesheet to your wp-login.php screen gives you a…