-
Notifications
You must be signed in to change notification settings - Fork 0
/
login-form-custom-css.php
24 lines (24 loc) · 920 Bytes
/
login-form-custom-css.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
/**
* Plugin Name: Add custom CSS to login form
* Plugin URI: https://github.com/TaylorJadin/tiny-wordpress-plugins
* Description: This plugin allows you to add custom CSS to the login form.
* Right now I use this to hide everything but the Google button in combination with the Nextend Social login plugin
* Version: 1.0
* Author: Taylor Jadin
* Author URI: https://jadin.me/
**/
function login_form_custom_css() {
echo '<style type="text/css">
#login > h1 {display: none;}
#login > p.message {display: none;}
#loginform > p:nth-child(1) {display: none;}
#loginform > div.user-pass-wrap {display: none;}
#loginform > p.forgetmenot {display: none;}
#loginform > p.submit {display: none;}
#nsl-custom-login-form-main .nsl-container-login-layout-below {padding: 0px !important;}
#nav {display: none;}
</style>';
}
add_action('login_head', 'login_form_custom_css');
?>