Skip to content

How To Remove Remember Me Option From WordPress Login

In last article, I showed you how to set remember me option to be always checked in WordPress login page. If you want, you can also remove remember me option from WordPress login page by adding a simple CSS styling to the header of your login page.

Don’t worry. We are not going to edit any core file, but we will use functions.php file for this task. Just add following snippet to your current theme’s functions.php file:

add_action('login_head', 'remove_remember_me');
function remove_remember_me()
    echo '<style type="text/css">.forgetmenot { display:none; }</style>';

1 thought on “How To Remove Remember Me Option From WordPress Login”

Leave a Reply

Your email address will not be published. Required fields are marked *