Wix Members Area is messed up

Question:
How to remove wix members area sign-in and sign-up forms? This one is so annoying I tried overriding the forms ( since I created login and registration in custom while using wix-users API ) but when an unauthorized user access protected routes / urls it is displaying the sign-in wix members area forms that I don’t want.

Product:
Wix Members area default sign-up and sign-in

What are you trying to achieve:
To make my custom forms display instead ( by the way this forms are in pages format )

What have you already tried:
overriding it programmatically checking if user is not loggedIn and wixLocation ( redirect to my custom forms ) but this doesn’t seem to work.

Additional information:
T_T

This is a genuine issue, but with a simple workaround.

In order to avoid confusion in the terms I use, I will refer to the custom signup / login form that you have created using the Velo APIs as Velo Form (which I am assuming is on a separate page). And the option that Wix offers to design a custom lightbox signup and login form using drag and drop input elements and connnecting it to the data without code, I’ll refer to as the Custom Form.

As outlined in this article:

This is how you can create a Custom Signup / Login form and design it however you like. Once you enable it from the settings, this will override the default Wix Signip & Login UI. And this is what a user will see if they enter a member’s only page.

Now the trick here is to NOT use this custom form as your signup / login form. Instead, just some text such as “You need to Log In in order to access this page” and simply add a button below it that takes users to your Velo Login page. And that’s pretty much it.

That’s how I did it on one of my sites, and yes the user may not be automatically redirected to the Members Only page which they were to access upon being logged in through your Velo form. This is because if you try to switch from a general page to a member’s only page if you’re not logged in, the login lightbox pops up but the URL still remains the same until the user logs in, and that eliminates the ability to “track” which page the user was trying to access in order to redirect them back to it.

Which is why in most member restricted pages on my site, I have kept it as accessible to everyone, but perform a check through code and if the user isn’t logged in, redirect to my Velo login page with the URL added as a query param to redirect back to.

1 Like