This option “Returning customer? hide possible wordpress e-commecree
This option “Returning customer? hide possible wordpress e-commecree
Yes — that “Returning customer? Click here to login” section can be hidden in a WordPress e-commerce site (usually WooCommerce).
Since this layout is standard for WooCommerce checkout, here are the correct ways to hide it:
✅ Method 1: Hide with CSS (Quick & Easy)
Go to:
WordPress Dashboard → Appearance → Customize → Additional CSS
Add this:
.woocommerce-form-login-toggle {
display: none !important;
}
If that doesn’t work, try:
.woocommerce .woocommerce-form-login-toggle {
display: none !important;
}
Click Publish.
✔ Fast
✔ No plugin needed
✖ Only hides visually (still exists in code)
✅ Method 2: Remove with PHP (Cleaner Method)
If you want to completely remove it from checkout:
Go to:
Appearance → Theme File Editor → functions.php
Add this:
remove_action( 'woocommerce_before_checkout_form', 'woocommerce_checkout_login_form', 10 );
Save.
✔ Fully removes it
✔ Cleaner than CSS
⚠️ If you're not using a child theme, changes may be lost after theme updates.
✅ Method 3: Disable Login at Checkout (WooCommerce Setting)
Go to:
WooCommerce → Settings → Accounts & Privacy
Uncheck:
-
“Allow customers to log into an existing account during checkout”
Save changes.
✔ Easiest method
✔ No coding
Which method should you use?
-
If you want quick fix → CSS
-
If you want permanent clean removal → PHP method
-
If you don’t want login at checkout at all → WooCommerce setting