1. Home
  2. Knowledge Base
  3. WooCommerce Wholesale Lead Capture
  4. Styling
  5. How to override login and registration form templates
  1. Home
  2. Knowledge Base
  3. WooCommerce Wholesale Lead Capture
  4. How to override login and registration form templates

How to override login and registration form templates

Need to change the layout, wording, or markup of the wholesale login and registration forms beyond what the settings panels let you adjust? You can override the form templates from your theme. This article shows you where the templates live, how to copy them safely, and what to preserve so your overrides keep working after plugin updates. Template overrides in WooCommerce Wholesale Lead Capture work the same way as WooCommerce’s own template overrides, so if you’ve done it in WooCommerce, this will feel familiar.

Before you start

You’ll need WooCommerce Wholesale Lead Capture installed and active, and a child theme to hold your overrides. Putting overrides in a child theme keeps them safe when your parent theme updates.

Override a template file

To override a template file:

  1. Go to the /wp-content/plugins/woocommerce-wholesale-lead-capture/templates/ directory.
  2. Copy the .php file you want to override, such as wwlc-login-form.php, wwlc-registration-form.php, or wwlc-logout-page.php.
  3. Paste the file into your child theme inside a folder called woocommerce. The path should look like /wp-content/themes/your-child-theme/woocommerce/[template-file].php.

The plugin scans your theme, detects these overrides, and uses them instead of the bundled plugin versions.

Keep in mind that when you update the plugin, template files sometimes change to keep up with new features. After an update, compare your overrides against the latest plugin templates so you don’t miss any changes.

Preserve the View Password icon

The default login and registration templates now include a “View Password” icon (an eye toggle) on every password field. If your override removes the markup WooCommerce expects, the toggle silently disappears. Keep these three things in your overridden template:

  • The woocommerce-Input class: keep it on every type="password" input. Without it, WooCommerce won’t wrap the field and the toggle never renders.
  • The .password-input wrapper and .show-password-input button: don’t strip them. WooCommerce’s frontend script creates this markup at render time.
  • The footer script: if you’ve customised script enqueueing, confirm wwlc_password_toggle_js still loads in the footer.

A bit more on that last point. The plugin’s PasswordToggle.js only deduplicates extra toggle copies caused by page-builder re-renders. If WooCommerce never adds the wrapper because your override changed the input markup, there’s nothing for the script to clean up and no toggle appears. Template overrides on their own don’t change script loading, but if you pair them with wp_dequeue_script calls you can leave the page without the deduplication step.

WWLC wholesale login form with the View Password eye icon visible on the right edge of the password input field

Troubleshooting

The View Password icon disappeared after my override. Re-add the woocommerce-Input class to the password input in your overridden template. WooCommerce uses that class to wrap the field and add the eye toggle, so the icon won’t render without it.

Need help?

If you have a question or run into any issues, we’re here to help.

Was this article helpful?

Related Articles

Complete Your Purchase