Wordpress Sidebar Login 2 – Optimised for wordpress 2.6
At last! My sidebar login widget has evolved into ‘Sidebar Login’ which has both a widget and a template tag to allow you to have a login form in the sidebar of your wordpress powered blog.
It lets users login, and then redirects them back to the page they logged in from rather than the backend, it also shows error messages. Read more for more information and the download link.
Sidebar Login
Sidebar login is self explanatory really; it allows users to login to wordpress from the sidebar! This plugin requires wordpress 2.6 (that is all I have tested) in order to function; this is because wordpress 2.6 has a modified login system to older versions.
Screenshots

Login Form

Logged in
Change Log
You can track changes to the plugin in the wordpress plugin SVN.
Get it now!
You can get the latest version from the wordpress plugin database; Download it here!
Installation Instructions
- Unzip and upload the php file to your wordpress plugin directory
- Activate the plugin
- For a sidebar widget: Goto the design > widgets tab – Drag the widget into a sidebar and save!
- To use the template tag: Add
<?php sidebarlogin(); ?>to your template.
License
Wordpress Sidebar Login © Copyright 2008-current. Mike Jolley
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
optimised
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Show your support – ensure continued development
I put a lot of effort into all of my plugins; its thirsty work so why not show your support by buying me a nice coffee
Found this post useful? Why not buy me a coffee!










garrett says:
hello mike,
once logged in, with no redirect upon login, there is an extra li element in ul class=”pagenav”. its always there in the page source. i never would have noticed but i was trying to display the links i added in the admin and the logout link inline and when displayed inline it adds an extra li marker.
played around with it a little bit but its kind of late, any ideas?
thanks very much, nice light and easy plugin.
Comment made on March 3, 2010 at 7:40 am
Daniel de Klerk says:
Hi Mike ,
This is a very nice plugin . I would like to know how to fix a problem or 2 .
1)When you register or login and do something wrong you are redirected to the wp login/register page and from there to the dashboard which is defeating the plugin purpose .
2)Can the LOGIN text on top be removed by any means ? I would like to not have it there .
3)How do I move the text and blocks a bit to the left to fit into my sidebar ? I cannot see anything relevant in the css ?
I am not a fundi but does understand a bit coding etc but sometimes does get blond moments .
Please have a look at my site to see how much the text have to be moved .
Thank you very much
Daniel
Comment made on March 3, 2010 at 10:19 am
Daniel de Klerk says:
Mike ,
Sorry , me again but I forgot something .
How do I add a captcha to this sidebar plugin ? Mine does not work now (si-captcha) but anything else you can suggest that will work here is fine with me . Just need to get automated regs and posts out , or try to at least .
big thanks again .
Daniel
Comment made on March 3, 2010 at 10:26 am
Mike Jolley says:
@Daniel de Klerk: This plugin does not handle registration, only login. There are other plugins to prevent dashboard access. You can only remove the text through css or editing the code. Finally, add extra css styles to your theme’s style.css if you need to make it fit with your theme better.
@garrett: You don’t have any extra line breaks in the admin section textareas do you? Settings > Sidebar login
Comment made on March 3, 2010 at 9:13 pm
Daniel de Klerk says:
Thanks Mike
One more simple q – can the dashboard and profile links be hidden or disabled in any way ? Thanks
Daniel
Comment made on March 4, 2010 at 3:19 pm
David says:
Great plugin.
Having one issue. The option for leaving the “Login redirect URL” field blank in order to leave the user on the current page is giving me fits. If I leave the field blank it always redirects the user to the Dashboard. If I fill the field in with anything else, it redirects to whatever link just fine. But I’d really prefer to leave my users where they are when the login. The logout works just fine. I’ve read through all the comments and all the stuff out at the Wordpress.org extend section and can’t seem to find anything that will help. Any info would be appreciated.
Comment made on March 8, 2010 at 9:36 pm
Mike Jolley says:
@David: View page source; whats the form action saying? (its in the form html tag)
Comment made on March 9, 2010 at 7:07 pm
extruendo says:
I have problems with the widget.
the widget makes others disappear
Using WordPress 2.9.1
Comment made on March 10, 2010 at 3:03 pm