Enable customer registration in the header Account panel

Estimated reading time: 2 min

Rey’s header Account panel shows a login form to visitors who are not signed in. Whether it also shows a Create an account form next to it is not a Rey setting: it comes straight from WooCommerce, which is why the panel can look “login only” on a fresh install.

One checkbox turns it on.

Enable registration

Go to WooCommerce → Settings → Accounts & Privacy and tick “Allow customers to create an account on the My account page”. Save.

That is the setting Rey reads. With it on, the registration form appears in the header Account panel and on the My Account page. With it off, neither shows one, no matter what else is configured.

The WooCommerce → Settings → Accounts & Privacy screen, with the "Allow customers to create an account on the My account page" checkbox ticked and highlighted.

Two neighbouring options on the same screen are worth a look while you are there:

  • Allow customers to create an account during checkout is separate. It is what lets a first-time buyer end up with an account without ever visiting the account page, and most shops want both.
  • The account creation options underneath decide which fields the form actually has. Letting WooCommerce generate the username removes the Username field, and letting it generate the password removes the Password field and emails a set-password link instead. A shorter form converts better, but the customer cannot sign in until they open that email.
The header Account panel open on the front end, showing the login form and the "Create an account" form below it.

Note: WordPress has its own Settings → General → Membership → Anyone can register option. It governs WordPress’ own registration screen at wp-login.php, not the WooCommerce form in Rey’s panel, so leaving it off does not stop customers from registering. Some security plugins do check it, though, so if registration fails with everything else correct, it is worth turning on.

The form still does not show up

If the checkbox is ticked and the panel still shows only a login form, work through these:

  • The panel is set to show no forms at all. In Rey Theme → Settings → Header → Account, check that Enable Forms/Account menu is on. With it off, the account button just opens the account page.
  • Catalog Mode is on. In Rey Theme → Settings → WooCommerce → Advanced, Enable Catalog Mode can hide the account forms along with the cart.
  • You are logged in. The forms are only rendered for signed-out visitors. Check in a private window.
  • A cached page is being served. Clear your caching plugin, and make sure it is not caching pages for logged-in users. See Excluding cookies from cache.
  • Another plugin is handling accounts. Social login, membership and custom login plugins often replace these forms with their own. Account widget compatibility problems covers the usual suspects.

If registration is rejected with a security error rather than simply not appearing, that is a different problem: see Invalid security nonce.

Was this article helpful?