Posted: August 4, 2020 at 1:24 pm
Hi, I’m using an alternate login page with the WP User Integration, as shown here in the settings of EE. However, on all events, when the login error appears with the login button, the page is still trying to point to the regular WordPress login page, and just jumps to the top of the page without redirecting. http://somaticpractice.flywheelsites.com/events/test-event/ You can test by using the email address testlogin@test.com. I was able to get it to work on the page using the [ESPRESSO_MY_EVENTS] shortcode by using this snippet: Here is the login page that was created, where it should be redirecting to: http://somaticpractice.flywheelsites.com/attendee-login/ Any other information needed, please let me know. |
|
Hi there, The field in the WP User integration settings allows you to set an alternative URL for your sites registration page, not a custom login URL. On your site you are hiding the register button (which is pulling the correct URL) with CSS: https://monosnap.com/file/gz42Yd31b7TyIg1kkEJVrwkNiEB90D The ‘Login’ button that is visible just uses the standard URL and the page is ‘jumping to the top’ because Avada has some JavaScript that disables buttons if the link uses an anchor tag that already exists on the current page. If you want to change the URL used for everything that generates a link to log in you can use the login_url filter (EE just uses the wp_login_url() to generate that URL, so filtering it will change the URL used globally) and return your custom URL through that. I’m guessing you’ll be redirecting the user back to the checkout after they log in again? |
|
Got it. Yes, we’d like to redirect them back to the checkout. I’m looking for a plugin that could accomplish this, or a snippet. I tried the WPS Hide Login plugin, but it just made my custom login page into the default WordPress login page, which is not what I want. Any ideas? |
|
I was able to get the URL working, but still having issues with the page jump. I’ll submit to Avada support, but any ideas for enabling it? |
|
So I disabled the Avada theme, and it actually looks like EE is creating a pop-up, not redirecting to the custom login page. Is this the functionality that’s expected? The link correctly points to the custom login page. |
|
Screenshots: https://postimg.cc/gallery/860H8RR |
|
I don’t, Avada should be able to give you some advice on how to prevent it as it’s their code.
Yes, it’s expected to show a popup to log in, that is what would be happening if Avada wasn’t disabling the link when it’s enabled. May I ask why you want to direct the user away from the checkout process to then redirect them back to it? The popup handles logging the user into the site in the background without disrupting the checkout flow, as it stands you’ll push them away and then back again as you’ll need to disable the popup and direct the user to the page.
Does the login using the popup function and allow you to continue onto the next step of the registration? |
|
Ok, thanks, I’ve got a ticket in.
Ok, thanks.
The pop-up is fine, the URL just looked like it was going to redirect them to the custom login page I created.
Yes, if the Avada theme is disabled. Since you can’t provide support for the Javascript issue, we can close this thread. Thanks for your help! |
|
The support post ‘Alternate login page link not working’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.