This tutorial will show how to create and style up a WordPress reset password form with the help of the JetBlocks plugin and Elementor page builder.
Before you start, check the tutorial requirements:
- Elementor (Free version)
- JetBlocks plugin installed and activated
Add a Reset Password Form to the Page
Widget enabling
Navigate to WordPress Dashboard > Crocoblock > JetPlugins Settings. Unfold the JetBlocks tab and click on the Widgets & Extensions section.
Ensure that the Reset Password switcher is toggled on.
Creating a page template
Before applying the reset password feature, create a new page template or select an existing page where you want to place it. To learn how to create and display a page template, check out the How to Create a WordPress Single Post Page Template guide.
Adding the widget
Open the page in the Elementor editor and drag and drop a Reset Password Form widget to a certain section.
Settings of the widget
Unfold the Forms section in the Content block and input data into the fields. You may provide a custom text or keep the default one.
Customization of the form
In the Forms section, you can customize the text of the reset password form and set the minimum password length.
Redirecting the password
A bit below, you will find a Redirect After Password Reset drop-down list where you can choose the required action. It is possible to redirect a user to the “Home page,” “Static page,” or “Stay on the current page.”
Once the last option is selected, a new field bar will appear where you can enter the name of the needed page.
Adding a login link to your reset password form
Add the login link to your reset password form by enabling the Login link feature. The link will appear after a successful password reset.
The Login page URL field allows selecting a default login page or a static one.
Customizing the reset email content
Proceed to the Email settings section in the Content tab. Type a custom password form’s Text, or keep the default one. You can use the following codes to show the relevant info in the email: Username: {username}, Reset URL: {reset link}.
Below you will find a field for customizing the email subject.
The email with the reset password link is sent from the default email address. When enabled, the Custom mail sender toggle allows you to customize the sender name and email address.
Buttons settings
Here you can change the Reset button text and Login button text to suit your needs.
Messages settings
The final section in the Content block is the Messages Settings.
Here, you can customize the text shown to customers after form submission, whether it’s a success message, an invalid username warning, or an error for a missing or incorrect email.
Style a Reset Password Form
Proceed to the Style tab.
Here you will find options for customizing every element of the reset password form.
Demo messages such as “Your password has been reset” or “That username is not recognized” won’t be visible on the front end until certain conditions are met, e.g., reset successfully or username entered incorrectly.
Reset Password on the Front End
Once you have styled the form, publish it and quit the editor. Open the page you added the form to on the front end.
Please note that the form requires a real email address for it to work correctly.
When the user enters their email address or username and hits the “Reset Password” button, a link to create a new password will be sent to the provided email.
That is all for the Reset Password Form creation. You now know how to do it with the help of the JetBlocks WordPress plugin.