Hello there!
I would like to remove the “remember me” checkbox on the Woo Commerce Login page. Can you please advise?
Thank you!
Hey perfectword,
Can you post a link to that page? so we can take a closer look.
Best regards,
Nikko
I’m pretty sure it’s in /wp-content/plugins/woocommerce/templates/myaccount/form-login.php
The code that creates the “Remember Me” checkbox is
<p class="form-row">
<?php wp_nonce_field( 'woocommerce-login', 'woocommerce-login-nonce' ); ?>
<input type="submit" class="woocommerce-Button button" name="login" value="<?php esc_attr_e( 'Login', 'woocommerce' ); ?>" />
<label class="woocommerce-form__label woocommerce-form__label-for-checkbox inline">
<input class="woocommerce-form__input woocommerce-form__input-checkbox" name="rememberme" type="checkbox" id="rememberme" value="forever" /> <span><?php _e( 'Remember me', 'woocommerce' ); ?></span>
</label>
</p>
I’m just asking for some code I can put in my child theme’s css or functions.php to remove “Remember me” and the checkbox.
I’m looking forward to your reply! Thanks!
Hi,
Can you try to use a child theme: http://kriesi.at/documentation/enfold/using-a-child-theme/ then create this folder structure inside it:
woocommerce/myaccount/ then add copy form-login.php from /wp-content/plugins/woocommerce/templates/myaccount/form-login.php to it and then remove the Remember Me checkbox and that should be it. Hope this helps :)
Best regards,
Nikko