Support

Home Forums Event Espresso Premium Alternate login page link not working

Alternate login page link not working

Posted: August 4, 2020 at 1:24 pm


Tony

  • Support Staff

August 5, 2020 at 8:51 am

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?


Somatic Practice

August 5, 2020 at 12:01 pm

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?


Somatic Practice

August 5, 2020 at 1:24 pm

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?


Somatic Practice

August 5, 2020 at 1:50 pm

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.


Somatic Practice

August 5, 2020 at 1:53 pm

Screenshots: https://postimg.cc/gallery/860H8RR


Tony

  • Support Staff

August 5, 2020 at 2:15 pm

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?

I don’t, Avada should be able to give you some advice on how to prevent it as it’s their code.

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?

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.

The link correctly points to the custom login page.

Does the login using the popup function and allow you to continue onto the next step of the registration?


Somatic Practice

August 5, 2020 at 3:15 pm

I don’t, Avada should be able to give you some advice on how to prevent it as it’s their code.

Ok, thanks, I’ve got a ticket in.

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.

Ok, thanks.

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.

The pop-up is fine, the URL just looked like it was going to redirect them to the custom login page I created.

Does the login using the popup function and allow you to continue onto the next step of the registration?

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.

Event Espresso