How to display a login form in the sidebar in WordPress

If you have a login form on the sidebar of your WordPress blog, then it becomes easy for visitors to be able to log on to your blog and this in turn increases the visitor interactions with your site. By default, WordPress doesn't provide login form on the blog but we can use Sidebar Login plugin to add this useful feature to our blog. Upon logging on to your blog via this plugin, it takes you to the post you were reading earlier instead of backend. Also, it provides password reminder and new registration links.

To display login form in the sidebar follow the steps listed below:

  • Log in to your WordPress Dashboard.
  • Then from the left sidebar, go to Plugins -> Add New.
WordPress left sidebar
  • Search for Sidebar Login as shown below:
WordPress Install Plugin
  • In the search results, locate Sidebar Login row and click on Install Now link.
Click on Install Now link for Sidebar Login plugin
  • Enter your FTP login details for your web server.
Enter FTP details for your Wordpress blog
  • The plugin will be downloaded to your web server. Click on Activate Plugin link.
Activate Sidebar Login plugin
  • After this you will see the following message upon activation.
Plugin activated message
  • Go to Settings -> Sidebar Login.
Open Sidebar Login settings
  • Change the Sidebar Login settings. Here, I have changed the form heading.
Sidebar Login plugin settings
  • Save the settings.
  • Go to Appearance -> Widgets.
Go to Widget section
  • Drag the Sidebar Login widget to the Main Sidebar area.
WordPress Widget section
  • That's it! The Login form will appear like this in the sidebar for anonymous users:
Sidebar Login for anonymous user
  • For logged in users it will look like this:
Sidebar Login for logged-in user