Support

Home Forums Event Espresso Premium LOGIN button missing on the Personal Information page

LOGIN button missing on the Personal Information page

Posted: February 20, 2024 at 3:11 pm

Viewing 2 reply threads


Somatic Practice

February 20, 2024 at 3:11 pm

During the event registration process the Personal Information page is no longer showing the LOGIN button, as shown in this screenshot:
https://app.screencast.com/xH04UsXxAb0Hv

To test this on our test site https://somaticpractice.webwatchdawg.com I turned off all custom code snippets, deactivated our only custom plugin, and removed any customizations in our child theme. Even so, I still don’t see the LOGIN button. Any thoughts on this?

While I’m at it, can you please point me in the right direction to address these other issues noted in the screenshot:
– How to remove the text above the error message “An error has occurred”
– How to add a link on “Lost password” (see code snippet below)
– How to make the fields at the bottom show above the error message

—–

NOTE THAT THE FOLLOWING SNIPPET WAS TURNED OFF DURING THE TEST ABOVE. I’M INCLUDING IT TO SHOW HOW I’VE TRIED TO ADDRESS THIS QUESTION:
How to add a link on “Lost password”

I found that the HTML code is $replacement string is not being interpreted as HTML, so is displayed as code and I’m not able to add a link to the error text via the following code snippet…

function signuperror_filter_gettext( $translated, $original, $domain ) {
$replacement = ‘You have entered an email address that matches an existing user account in our system. If this is your email address, please log in before continuing your registration. Click “Lost password?” to reset your password if necessary. If you are having trouble logging in, please DO NOT register with an alternate email address. This will create two profiles in our system. Instead, please contact info@somaticpractice.net for a password reset.’;

// This is an array of original strings
// and what they should be replaced with
$strings = array(
‘You have entered an email address that matches an existing user account in our system. If this is your email address, please log in before continuing your registration. Otherwise, register with a different email address.’ => $replacement
// Add some more strings here
);

// See if the current string is in the $strings array
// If so, replace its translation
if ( isset( $strings[$original] ) ) {
// This accomplishes the same thing as __()
// but without running it through the filter again
$translations = get_translations_for_domain( $domain );
$translated = $translations->translate( $strings[$original] );
}

return $translated;
}

add_filter( ‘gettext’, ‘signuperror_filter_gettext’, 10, 3 );


Tony

  • Support Staff

February 20, 2024 at 4:03 pm

Hi there,

The login button is actually already loading, but someone has added some CSS specifically to hide it:

https://monosnap.com/file/7db64190EYlilyIbIXLdmjwn7NZfnr

That CSS is within Avada’s custom CSS section.

– How to remove the text above the error message “An error has occurred”

Thats the heading for the modal that is loading where the text is added, its used for multiple ‘error’ notices and not just for the WP user integration error so removing it may cause confusion, but to do it you can add something like this:

'An error has occurred:' => '',

To your $strings array in the function above.

– How to add a link on “Lost password” (see code snippet below)

Hmmm, we don’t currently have an easy option for this, but wouldn’t they do that from the login itself?

– How to make the fields at the bottom show above the error message

You can’t as it stands, the error message specifically targets the email fields as its using the value from there.


Somatic Practice

February 20, 2024 at 4:25 pm

Hi Tony, thanks for your detailed and quick response. Much appreciated!


Rio

  • Support Staff

February 20, 2024 at 6:04 pm

Awesome, if you need anything, feel free to reach us again.

thanks

Viewing 2 reply threads

The support post ‘LOGIN button missing on the Personal Information page’ 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