Skip Navigation

[Closed] 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.

This topic contains 1 reply, has 1 voice.

Last updated by Christopher Amirian 2 weeks, 6 days ago.

Assisted by: Christopher Amirian.

Author
Posts
#2816513

Hi

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

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

Many thanks
Isabel

#2816517

Christopher Amirian
Supporter

Languages: English (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.

The topic ‘[Closed] Change wordings ‘Lost Your Password’ to ‘Reset Password’’ is closed to new replies.