Saltar navegación

[Resuelto] Updating log in form to remove "user name" and only ask for "User email address"

This support ticket is created hace 1 año, 3 meses. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Minesh hace 1 año, 3 meses.

Asistido por: Minesh.

Autor
Mensajes
#2644179

Today the login form uses this language " Username or Email", my client wants it to only ready "Email Address". How can I make that change?

#2644287

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

As I understand - you want to change the field label "Username or Email" that is coming from Toolset's login form. If yes:
- you can use the "gettext" hook.

For example - Add the following code to "Custom Code" section offered by Toolset or your active theme's "functions.php" file.
=> https://toolset.com/documentation/adding-custom-code/using-toolset-to-add-custom-code/

add_filter( 'gettext', 'func_custom_login_form_label', 20, 3 );
function func_custom_login_form_label( $translated_text, $text, $domain ) { 
    switch ( $translated_text ) {
        case 'Username or Email' :
            $translated_text = __( 'Email Address', 'wpv-views' );
        break;
    }
    return $translated_text;
}
#2644289

Perfect! Thank you!!!