Skip to content

Instantly share code, notes, and snippets.

@feliciaceballos
Created March 11, 2019 20:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save feliciaceballos/f40337bd78d10fe8cb469febc44cb9fa to your computer and use it in GitHub Desktop.
Save feliciaceballos/f40337bd78d10fe8cb469febc44cb9fa to your computer and use it in GitHub Desktop.
Add custom stylesheet to WordPress Login Page
<?php
//If you're using this in your functions.php file, remove the opening <?php
//Replace style-login.css with the name of your custom CSS file
function my_custom_login_stylesheet() {
wp_enqueue_style( 'custom-login', get_stylesheet_directory_uri() . '/style-login.css' );
}
//This loads the function above on the login page
add_action( 'login_enqueue_scripts', 'my_custom_login_stylesheet' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment