Skip Navigation

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

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)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 1 year, 2 months ago.

Assisted by: Minesh.

Author
Posts
#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

Languages: English (English )

Timezone: 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!!!