Skip to content

Instantly share code, notes, and snippets.

@kilroyjones
Created January 20, 2021 01:17
Show Gist options
  • Save kilroyjones/c981391bb507244498e2ad6fe33a7b68 to your computer and use it in GitHub Desktop.
Save kilroyjones/c981391bb507244498e2ad6fe33a7b68 to your computer and use it in GitHub Desktop.
add_action( 'login_head', 'wpse_121687_hide_login' );
function wpse_121687_hide_login() {
$style = '';
$style .= '<style type="text/css">';
$style .= '.login form{ display: none }';
$style .= '.login #nav a, .login #backtoblog a { display: none }';
$style .= '</style>';
echo $style;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment