How To's

How to add a login form in your WordPress sidebar?

If you own a membership, multi-author or any WordPress site with lots of users, adding a login form to the sidebar of your website allows users to sign in or login quickly to their account. Adding a login form to your WordPress sidebar helps to boost engagement. In this article, we will teach you how to easily add a custom login form to your WordPress sidebar. Here, we have described two methods to add a login form in WordPress sidebar:

1. Adding a login form in the sidebar using Sidebar Login Plugin

The first essential step is the WordPress login. Next step is to go to plugins and click on “Add New”.

add a plugin wordpress

Type “Sidebar Login” in the search box and install the plugin. Don’t forget to activate the plugin.

install sidebar login  plugin wordpress

After plugin activation, go to Appearance and click on “Widget” page in your WordPress admin area. All you have to do is simply drag and drop the sidebar login widget in your sidebar widget area.

drag sidebar login widget wordpress

Login form in your WordPress sidebar will be added automatically. To customize the login form settings, you have to edit widget settings. You can add logged-out title, custom links, enable lost password, register links and display “Remember me” option.

sidebar login settings wordpress

After making setting changes, click on “Save” button. Go to your website and check – you will see a custom login form in action.

sidebar login form wordpress

2. Adding a custom login form using WPForms plugin

WPForms is the most popular WordPress form plugin. The premium version allows you to create WordPress login and registration forms with custom fields. To add a custom login form using WPForms plugin, follow the steps given below:

The first step is to install and activate the WPForms plugin. After activation, visit WPForms and go to the settings page. Enter your license key. You can get your license key from your WPForms account on their website.

verify license key wordpress wpforms

Once your license key is verified, go to WPForms and click on “Addon” page. Now, scroll down to the User Registration Addon and click on the “Install Addon” button. Don’t forget to activate it.

install add on wpforms wordpress

After installation of “Addon”, you are all set to create a custom WordPress login form. Go to the WPForms and click on “Add new” page to launch the WPForms builder.

You need to decide which kind of form you are looking for. Enter the form name and select the built-in User login form template.

login form wordpress wpforms

Some pre-loaded login fields screen will pop up. Click on the field to edit it or add new fields from the left column.

login form fields wpforms wordpress

Now, go to the settings and click on “Confirmation” section. At this step, you are supposed to decide what to do when a user successfully login to your site.

confirmation tab wpforms wordpress

Various options will be available such as Message, a custom page, or a redirect URL. Ideally, people choose “go to URL” as they want to redirect users to a page once they are logged in. Your login form is ready. You can simply add it in your WordPress admin area.

The next step is to go to the appearance and click on the Widget page in your WordPress admin area. All you need to do is drag and drop WPForms widget in sidebar widget area of your website.

drag widget wpforms wordpress

You can add a title to display above the login form and select your form in the drop-down. Now, click on the “Save” button to store your widget settings.

select login form wordpress

With both of the methods, you can easily add a login form in your WordPress sidebar.

Tags

Leave a Reply

Your email address will not be published. Required fields are marked *

Close