How to place a login form in the sidebar
Skip the login page. Want to log in through the front page? If yes then this tutorial is perfect for you. First, let’s see how it actually looks like. I tested it with my Lust WordPress theme on two local WordPress installs, version 2.1 and 2.2.
Here’s the login form in the sidebar:
Here’s the message after you’ve logged in:
And here’s what a logged in subscriber would see:
So how do you put a login form in the sidebar? Simple, I did the work for you. Copy and paste the code in sidebar_login.txt to your sidebar. The URLs generated by this code is compatible with WordPress version 2.1 and up only. 2.0 and earlier versions are not compatible.
This technique is especially useful if you’re tired of having to go to the login page or if your blog place great importance on getting readers to register for accounts and actually log in.
Source: The original code was from MW WordPress theme by Javier GarcÃa. I restructured and modified the code for a WordPress-like sidebar structure and valid XHTML.