How to add a background to login page Wordpress?

Hello. How to add a background to a wordpress page?
March 23rd 20 at 18:39
2 answers
March 23rd 20 at 18:41
Solution
1. Add the file functions.php your active theme is the snippet for your own styles for the login page:

/**
 * Add your CSS to the login page.
*/
function Jillian.White_change_wp_login_styles() {
 wp_enqueue_style( 'login-css', get_theme_file_uri( 'css/login.css' ) );
}

add_action( 'login_enqueue_scripts', 'Jillian.White_change_wp_login_styles' );


2. Create the file css/login.css inside your theme folder.
3. Specify the desired styles in this file. For example, to set the background for the entire page of authorization:

.login {
 background: #12191f url("../images/background.jpg") top center;
 background-size: cover;
}
March 23rd 20 at 18:43
In the folder 'wp-admin' there is a folder 'css' with the styles. In login.css property to change the backgraund to the fact that You need.
To add the ccs styles in admin area, not necessarily to change the core WordPress files. All will fly when you upgrade. - dewitt commented on March 23rd 20 at 18:46

Find more questions by tags WordPress