How to Add a Login Form in Your WordPress Sidebar
Do you wish to add a login form to the sidebar of your WordPress blog?
Users may easily log in from anywhere on your website thanks to a login form in the WordPress sidebar. Easy access to a login form can improve retention for online classes, raise revenues for e-commerce websites, and more.
This post will demonstrate how simple it is to add a unique login form to your WordPress sidebar.
When and Why Would a Custom WordPress Login Form Be Necessary?
You probably require people to check in before they can carry out specific tasks if you operate membership websites, online shops, or sell online courses.
The sidebar’s constant presence on a website increases the login form’s visibility and accessibility from every page.
Users can sign in to their accounts fast by adding a login form to your WordPress sidebar. This improves user experience, raises engagement, and boosts form conversions.
After that, let’s examine how you may quickly add a login form to your WordPress sidebar. We’ll demonstrate how to add a custom login form and the standard login form to the sidebar.
Method 1. Adding the default WordPress login form to the sidebar
On your website, you can display the standard WordPress login form in the sidebar. Users can now access the WordPress admin section very quickly and easily by only entering their username and password.
We’ll utilize the Astra theme for this instructional guide. Be aware that based on the WordPress theme you’re using, the options may change.
From your WordPress dashboard, go to Appearance » Widgets to get started.
To add the “Login/out” widget block to your sidebar from here, click the “+” button, scroll down to the “Theme” section, and then click on the desired widget block.
The ‘Login/out’ block will then appear in your widgets section. The option to display login as a form can then be enabled.
After making your changes, press the top-right “Update” button.
The default WordPress login form will thereafter be displayed when you visit your website.
Keep in mind that if you immediately go check the form, you’ll be logged in. To view how the form will appear to your members, simply log out of your website.
Method 2: Use the WPForms Plugin to Add a Custom Login Form
Only the username and password fields are available on the WordPress login form by default. A user registration form with more fields and customization options can be made, though.
WPForms is the finest tool to use for this. The premium edition of WPForms, the most widely used WordPress form plugin, enables you to quickly construct WordPress login and registration forms with custom fields.
Users of WPBeginner can get 50% off their purchases by using the promo code SAVE50 for WPForms.
The WPForms plugin needs to be installed and activated initially. See our step-by-step tutorial on installing a WordPress plugin for more information.
After activation, you must input your license key on the WPForms » Settings page. Your WPForms account on their website is where you may obtain your license key.
You need to go to WPForms » Addons page after verification.
From here, you must click the “Install Addon” button next to the “User Registration Addon” after scrolling down to it.
On your website, the add-on will now be installed and activated automatically.
You can now start building a unique WordPress login form. To access the WPForms builder, just go to the WPForms » Add New page.
You must first provide a form name in the top field before choosing the pre-built “User Login Form” template. Simply click the “Use Template” button after hovering over it.
It will show the login fields that are already pre-filled in your form. To modify a field, click on it. You can also add additional fields from the left column.
With WPForms’ drag-and-drop builder, you may add a variety of form fields. You may include name or CAPTCHA form fields in the login form, for instance.
After that, click the Confirmation section under the “Settings” tab.
You must specify what happens after a user successfully logs in to your website at this point.
A message, a unique page, or a redirect URL to any page on your website are the available choices.
Once a person logs in, you should ideally send them to a certain page. This might be your home page, the WordPress administration area, or any other page on your website, such the client portal or membership dashboard.
Then you can click the top-right “Save” button to leave the form builder.
You may now access your login form. You may do it from here and add it to your WordPress sidebar.
Simply go to your WordPress admin area’s Appearance » Widgets page. Add the “WPForms” widget block to this page in the sidebar widget section of your website.
From the selection menu, choose your user login form next.
In the settings panel to your right, there are more options that you may see. There are choices, for instance, to display the form’s title and description.
When you’re finished, don’t forget to click the “Update” button.
Visit your website right away to view the personalized login form.
You should now be able to add a login form to your WordPress sidebar, and we hope this post was helpful.