You might have noticed on Twitter that it provides you AJAX login at the time your are browsing other profile pages. For example: when you visit any Twitter profile, you can login to your account directly from there without leaving the current page. If you have a WordPress blog then you can easily add Twitter type login widget in WordPress site’s top right corner so that users can easily login or register in your site without leaving the page.
First of all install and activate RegistrationLogin plugin then follow two simple steps:
- Visit your dashboard-> appearance-> editor
- Open your theme’s header.php file and add the following line:
<?php if(function_exists(print_form)) print_form(); ?>
You might also like adding WordPress.com like login that allows you to login directly from wp admin bar. If you like doing that, read this post: Adding Login Form In Your WordPress Admin Bar.