Why does Disabling the "Allow user registration" checkbox, also remove the Sign In

why does Disabling the “Allow user registration” checkbox, also remove the Sign In option on the website home page? (Location - Hivepress > Settings > Users > Allow user registration). I am using the ListingHive theme.

Registration and Sign In’s are two different functions and should be independent of each other. I want to close all new registrations and manually create accounts for users.

(My requirement - I want to manually create each and every user login after they pay me. Hence, I don’t want a “Register” option visible/ available under the Sign In box. Optionally, it will be ok if the “Register” link opens another webpage on the same Website where I can explain the process to the Customer.)

Please share a solution.

Will this method help?

Step 1. Turn ON “Allow User Registration”**
* Go to HivePress > Settings > Users
* :white_check_mark: Check “Allow user registration” (this ensures the Sign In form stays visible)

Step 2. Hide the Register Link (Simplest) - I saw that the Register link has the following HTML code :
< a href=“#user_register_modal”>Register

We can directly target it using an attribute selector in CSS like this “Find any <a> (link) that has href="#user_register_modal" and hide it.”"

Solution:
* Install Code Snippets Plugin. Go to Appearance > Customize > Additional CSS
* Paste this CSS code:
a[href=“#user_register_modal”] {
display: none !important;
}
:white_check_mark: Done! “Sign In” stays, “Register” disappears.

Please confirm if this will be ok. I have already tested it on a users login and the “Register” option does in fact disappear.

please do not give me a Custom Code /Customization solution for such a simple request. thanks.

Hi,

Yes, this is the expected behavior, as this feature means that the site does not allow front-end user profiles, and the site is only changed by admins and editors, and leaving the login form would be confusing and possible security issues. However, thank you for your feedback, we will consider splitting this feature into two parts.

As a workaround, please try using this CSS snippet .hp-form--user-login .hp-form__action--user-register {display:none!important} (it hides the Register button). Also, if you want this solution to be more secure, we recommend adding a PHP snippet, but note that this will require advanced customization.

I hope It helps

Thanks Andrii, the CSS code snippet hid the “Register” option.

If I want the user to be re-directed to another page on the same website (customized Registration page) by clicking on the “Register” option, how can I insert a link in the code?

Regards

Hi,

I see. You can overwrite this template part hivepress/templates/user/login/user-register-link.php at master · hivepress/hivepress · GitHub using a child theme How to override template parts - HivePress Help Center.

​I hope this is helpful to you

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.