Saltar navegación

[Cerrado] Change wordings ‘Lost Your Password’ to ‘Reset Password’

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.

Este tema contiene 1 respuesta, tiene 1 mensaje.

Última actualización por Christopher Amirian 10 months, 2 weeks ago.

Asistido por: Christopher Amirian.

Autor
Mensajes
#2816513

Hi

On the Login page to the Member corner of my website, I have the function "Lost Your Password": enlace oculto

How do I change the wording of this function to "Reset Password"?

Many thanks
Isabel

#2816517

Christopher Amirian
Colaborador

Idiomas: Inglés (English )

Hi Isabel,

That does not seem to be a Toolset related form.
If you used Toolset for the form you can change the label:

Edit the Member‑Corner login page in the Block Editor.

Click the Login Form block to select it.

In the right‑hand sidebar, find the field labelled Lost password link label.

Replace “Lost your password?” with Reset Password.

Click Update to save the page.

Refresh the page on the front‑end and you’ll see the new wording.

If you used the default WordPress login feature, usually the method below is the way to go:

Use the custom PHP code feature:

https://toolset.com/documentation/programmer-reference/adding-custom-code/using-toolset-to-add-custom-code/

Add this code:

/**
 * Change the "Lost your password?" link text site‑wide.
 */
add_filter( 'gettext', function ( $translated, $original, $domain ) {
    if ( 'default' === $domain && 'Lost your password?' === $original ) {
        return 'Reset Password';
    }
    return $translated;
}, 20, 3 );

Save the code and activate the snippet.
Visit your login page— the link now reads Reset Password.

Thanks.

El debate ‘[Cerrado] Change wordings ‘Lost Your Password’ to ‘Reset Password’’ está cerrado y no admite más respuestas.