I have created a custom login page but when I access private pages, the standard login prompt always pops up. I tried to use wixLocation.to to redirect but had no luck. Is there any way to stop the standard login prompt and add a redirect?
I also tried a custom lightbox and linked it in Custom Signup Setting but didn't work
Thank you for your time
Hey
This is probably because you do not handle any custom login event or code right. What I usually do is that in the Site Code Tab I add code to check if the user is logged in or not. If the user is not logged in I redirect them using the wixLocation.to to my custom login page. This way I can make sure all protected pages accessed by non-logged-in users will be redirected to my custom login page.