Navigation überspringen

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

This support ticket is created vor 10 months, 2 weeks. 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.

Dieses Thema enthält 1 reply, hat 1 Stimme.

Zuletzt aktualisiert von Christopher Amirian vor 10 months, 2 weeks.

Assistiert von: Christopher Amirian.

Author
Artikel
#2816513

Hi

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

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

Many thanks
Isabel

#2816517

Christopher Amirian
Unterstützer

Sprachen: Englisch (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.