How to Display a Login Form to Sidebar in WordPress

How to Display a Login Form to Sidebar in WordPress

If you own a WordPress site which has a large number of registered users, you might want to get an easy way for your users to login to your site. This can be achieved by adding a login form in your sidebar.

As a matter of fact, it is not very difficult for you to do the job, even if you are a beginner. In below, we will discuss how to use Sidebar Login plugin to deal with the technical issues, so you do not need to worry about any code.

Install Sidebar Login Plugin

By visiting the dashboard of your site, you can click the “Add New” below the Plugin part. After that, enter the keywords “Sidebar Login” into the search box which is located at the upper right side of the page. With all done, you will see the page in below.

 Install Sidebar Login Plugin

Add a Login Form to Sidebar

After installing and activating this plugin, you can go with “Widget” which belongs to “Appearance” menu. The following step you need to take is to drag and drop the Sidebar Login widget from your widget list to the Main Widget Area.

Generally speaking, the default settings about the widget can achieve the goal and work on most WordPress sites, so if you do not want to bother about any customization, clicking on the “Save” button without changing anything is OK.

Add a Login Form to Sidebar

But in the case that you would like to make the login form preferable, it is also possible because the plugin provides many customization options.

Customize the Login Form

In the first place, you can enter your own logged-out title and add some necessary links in your login widget. There are some choices you can make about your links, including username, user ID, admin URL, logout URL, and so on. Then you can decide whether to “show lost password link” and “show ‘Remember Me’ check box”.

Customize the Login Form

The next options can influence the widget appearance when a user logs in. These options include Logged-in title, Links and Logout Redirect URL. For the first part, you are able to customize the greeting messages that users can see after they login. Also, you can choose to hide or show the links to user profile, dashboard, logout, etc. by following the plugin rules to add or remove lines like “Dashboard | %admin_url%”.

Customize the Login Logged in

When all the steps above are done, you can see the sidebar login form in the sidebar of your WordPress site when you visit it. If you need other tutorials about WordPress login, read our tips for email login and Facebook login.