You can use a compact login form if you want to display an “one line login and join us” message anywhere on your membership site. When a member logs in, it will display the name of the logged-in member and an option to logout.
For example, I have placed this compact login form on the header of my theme and it looks like the following to an anonymous visitor:
When a member logs into the site, it looks like the following to that user:
How to Use the Compact Login Form?
You can use the following shortcode if you are placing it on a post or page:
If you are placing this on your theme’s template file then use the following PHP fuction where you want it to appear (example: header.php, footer.php etc):
<?php echo eMember_compact_login_widget(); ?>
Adding the Compact Login Form to the Sidebar
Here is how you can add the compact login form to your site’s sidebar widget:
#1) Add a standard text widget to your sidebar (where you want to show the compact login form).
#2) Use the following shortcode in the text widget:
#3) Save the widget.