This tool loads a snippet’s CSS and JS on the WordPress login screen (wp-login.php), so you can brand it: logo, colours, background, small behaviours.
Turn it on#
- Create a snippet. Put the styles in its CSS tab and any behaviour in its JS tab. Save it.
- Go to Tools → Site Tools → Enable Style and Script on Login Page.
- Choose the snippet in the Snippet list and click Save.
What is loaded#
Only the snippet’s CSS and JS files. Its HTML is not added — WordPress still renders its own login form; you restyle and extend it. The tool uses the saved files, so save the snippet after changing its code.
Example#
body.login { background: #0f172a; }
#login h1 a {
background-image: url(/wp-content/uploads/logo-white.svg);
background-size: contain;
width: 220px; height: 60px;
}
#loginform { border-radius: 12px; border: 0; box-shadow: 0 20px 60px rgb(0 0 0 / .35); }
.login #backtoblog a, .login #nav a { color: #cbd5e1; }
.wp-core-ui .button-primary { background: #2563eb; border-color: #2563eb; }
Useful selectors: body.login, #login h1 a (logo), #loginform, #user_login, #user_pass, #wp-submit, #nav, #backtoblog.
Related#
The Login & Users snippets handle common tweaks without CSS: Change Logo on Login Page (your site icon), Change URL for Logo, redirects after login and logout, Disable Login Page Language Switcher. See Login & Users snippets.
Step by step: Restyle the WordPress login page.