Created
August 20, 2022 12:16
-
-
Save tderick/81a19722b2a3722ef00a00a12355fd2d to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| add_action( 'login_head', 'wpse_121687_hide_login' ); | |
| function wpse_121687_hide_login() { | |
| $style = ''; | |
| $style .= '<style type="text/css">'; | |
| $style .= '.login form .user-pass-wrap{ display: none }'; | |
| $style .= '.login form .submit { display: none }'; | |
| $style .= '.login form .forgetmenot { display: none }'; | |
| $style .= '.login form .input { display: none }'; | |
| $style .= '.login form label { display: none }'; | |
| $style .= '.login #nav { display: none }'; | |
| $style .= '.login #mo_saml_button b { display: none }'; | |
| $style .= '#login {margin-top: 150px}'; | |
| $style .= '</style>'; | |
| echo $style; | |
| } | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment