Quick wins for a faster PC:
Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Repair Windows errors before they cause bigger problemsFix Now →The correct method depends on which login form your site uses. For a form generated by wp_login_form(), set its remember argument to false. For WordPress’s standard wp-login.php screen, that argument does not control the page; hide the displayed row with CSS loaded through login_enqueue_scripts, after checking the markup on your site.
Identify the login form first
WordPress sites commonly use one of two forms:
| Form | Where it comes from | How to remove the visible option | What changes |
|---|---|---|---|
| Helper-generated form | wp_login_form() in a theme, template, or custom page |
Pass 'remember' => false |
The helper omits the checkbox markup |
| Core login screen | The built-in wp-login.php page |
Load targeted CSS with login_enqueue_scripts |
Presentation only; the exact selector depends on the rendered HTML |
The wp_login_form() reference documents the helper’s remember argument and its default value of true. The core screen is a separate implementation, so do not assume helper arguments or helper-only hooks affect it.
Remove it from a form created with wp_login_form()
Set the argument to false
Change the code that renders the form to:
<?php
wp_login_form( array(
'remember' => false,
) );
?>
This is the direct, supported setting for forms produced by the helper. The checkbox is not generated when the argument is false.
If the form is configured elsewhere
Locate the call to wp_login_form() in the active theme, child theme, custom template, or plugin. If another plugin or page builder creates the form itself, use that product’s template or setting instead; the helper argument cannot change unrelated markup.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
#1 Best Overall
- POWERFUL SECURITY KEY: The Security Key C NFC is the essential physical passkey for protecting your digital life from phishing attacks. It ensures only you can access your accounts.
- WORKS WITH 1000+ ACCOUNTS: Compatible with Google, Microsoft, and Apple. A single Security Key C NFC secures 100 of your favorite accounts, including email, password managers, and more.
- FAST & CONVENIENT LOGIN: Plug in your Security Key C NFC via USB-C and tap it, or tap it against your phone (NFC) to authenticate. No batteries, no internet connection, and no extra fees required.
- TRUSTED PASSKEY TECHNOLOGY: Uses the latest passkey standards (FIDO2/WebAuthn & FIDO U2F) but does not support One-Time Passwords. For complex needs, check out the YubiKey 5 Series.
- BUILT TO LAST: Made from tough, waterproof, and crush-resistant materials. Manufactured in Sweden and programmed in the USA with the highest security standards.
You can also alter the helper’s defaults with the login_form_defaults filter, but a direct argument on the specific form is clearer when only one form should change:
<?php
add_filter( 'login_form_defaults', function ( $defaults ) {
$defaults['remember'] = false;
return $defaults;
} );
That filter applies to the helper’s defaults, not automatically to the standard wp-login.php screen.
Rank #2
- POWERFUL SECURITY KEY: The YubiKey 5 NFC is the most versatile physical passkey, protecting your digital life from phishing attacks. It ensures only you can access your accounts
- WORKS WITH 1000+ ACCOUNTS: Compatible with popular accounts like Google, Microsoft, and Apple. A single YubiKey 5 NFC secures 100+ of your favorite accounts, including email, password managers, and more
- FAST & CONVENIENT LOGIN: Plug in your YubiKey 5 NFC via USB and tap it, or tap it against your phone (NFC), to authenticate. No batteries, no internet connection, and no extra fees required
- MOST SECURE PASSKEY: Supports FIDO2/WebAuthn, FIDO U2F, Yubico OTP, OATH-TOTP/HOTP, Smart card (PIV), and OpenPGP. That means it’s versatile, working almost anywhere you need it
- PRIMARY & SPARE KEYS: Just like having a spare house key, we recommend buying two YubiKeys - one for daily use and one as a spare. That way you’ll never get locked out of your accounts
Hide it on the standard wp-login.php screen
Load a small login stylesheet
WordPress provides login_enqueue_scripts for styles and scripts used on login and registration screens. Add a callback in a site-specific plugin or the active theme’s functions.php:
<?php
add_action( 'login_enqueue_scripts', function () {
wp_enqueue_style(
'site-login-fixes',
get_stylesheet_directory_uri() . '/login-fixes.css',
array(),
'1.0'
);
} );
Create login-fixes.css in the location used by that URL. In your browser, open the login page, right-click the Remember Me row, choose Inspect, and identify the element that contains the checkbox and label. Then add a rule for that element, for example:
Rank #3
- POWERFUL SECURITY KEY: The YubiKey 5C NFC is the most versatile physical passkey, protecting your digital life from phishing attacks. It ensures only you can access your accounts
- WORKS WITH 1000+ ACCOUNTS: Compatible with popular accounts like Google, Microsoft, and Apple. A single YubiKey 5C NFC secures 100+ of your favorite accounts, including email, password managers, and more
- FAST & CONVENIENT LOGIN: Plug in your YubiKey 5C NFC via USB and tap it, or tap it against your phone (NFC), to authenticate. No batteries, no internet connection, and no extra fees required
- MOST SECURE PASSKEY: Supports FIDO2/WebAuthn, FIDO U2F, Yubico OTP, OATH-TOTP/HOTP, Smart card (PIV), and OpenPGP. That means it’s versatile, working almost anywhere you need it
- PRIMARY & SPARE KEYS: Just like having a spare house key, we recommend buying two YubiKeys - one for daily use and one as a spare. That way you’ll never get locked out of your accounts
/* Example only: confirm this selector in your site's rendered HTML. */
body.login form p.forgetmenot {
display: none;
}
The example selector matches a common core-login structure, but it is not a universal contract. A security plugin, custom login screen, or theme can change the element, class, or wrapper. If inspection shows different markup, use the narrowest selector that matches only the Remember Me row and test the result at the actual login URL.
Keep the rule narrowly scoped
- Target the checkbox row, not every paragraph or label on the login form.
- Check the page at desktop and mobile widths after clearing any caching or optimization layer.
- Test both a failed login and a successful login to ensure the rule does not hide error messages or other controls.
The login_form_top documentation explicitly notes that this helper-form hook is unavailable in wp-login.php. That is why styling the core page through login_enqueue_scripts is a separate route.
Rank #4
- POWERFUL SECURITY KEY: The Security Key NFC is the essential physical passkey for protecting your digital life from phishing attacks. It ensures only you can access your accounts.
- WORKS WITH 1000+ ACCOUNTS: Compatible with Google, Microsoft, and Apple. A single Security Key NFC secures 100 of your favorite accounts, including email, password managers, and more.
- FAST & CONVENIENT LOGIN: Plug in your Security Key NFC via USB-A and tap it, or tap it against your phone (NFC) to authenticate. No batteries, no internet connection, and no extra fees required.
- TRUSTED PASSKEY TECHNOLOGY: Uses the latest passkey standards (FIDO2/WebAuthn & FIDO U2F) but does not support One-Time Passwords. For complex needs, check out the YubiKey 5 Series.
- BUILT TO LAST: Made from tough, waterproof, and crush-resistant materials. Manufactured in Sweden and programmed in the USA with the highest security standards.
Does hiding the option change login-session behavior?
No conclusion about cookie lifetime follows from hiding a checkbox. CSS changes what visitors see; it does not by itself establish a different authentication policy. WordPress explains Remember Me in the context of authentication cookies and login duration in its Logging In documentation. If your requirement is to enforce a particular session length, configure and verify that policy separately on the installed WordPress version rather than treating a hidden control as proof that session behavior changed.
Troubleshoot when the checkbox remains visible
You changed wp_login_form(), but the core page is unchanged
Verify the page URL. A form on a front-end page may be helper-generated, while /wp-login.php is the core screen. Apply the helper argument only to the former and the login stylesheet approach to the latter.
Free tools Windows power users keep installed
One-click scans. No signup required.
Your CSS has no effect
- Inspect the live HTML again; the plugin or theme may have replaced the row or its class.
- Confirm that the stylesheet URL loads successfully and that the
login_enqueue_scriptscallback runs. - Clear browser, page, and CSS-minification caches.
- Increase specificity only as needed, while keeping the selector limited to the Remember Me row.
The option disappears, but sessions still last longer than expected
That is a session-policy question, not a display question. Review the authentication-cookie and session settings relevant to your WordPress installation and test with a fresh browser session.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

