Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #804093

    Hello there!
    I would like to remove the “remember me” checkbox on the Woo Commerce Login page. Can you please advise?
    Thank you!

    #804363

    Hey perfectword,

    Can you post a link to that page? so we can take a closer look.

    Best regards,
    Nikko

    #804724

    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!

    #804782

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.