Created
March 11, 2019 20:00
-
-
Save feliciaceballos/f40337bd78d10fe8cb469febc44cb9fa to your computer and use it in GitHub Desktop.
Add custom stylesheet to WordPress Login Page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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