Home » Design & Usage

Using a Compact Login and Join Us Message

5 July 2010

You can use a compact login form if you want to display a one line login and join us message anywhere on your membership site. When a member logs in it displays the name of the loggd in memember 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:

Compact Login Form Display (when not logged in)

When a member logs in it looks like the following:

Compact Login Form Display (when logged in)

How to Use the Compact Login Form?

You can use the following shortcode if you are placing it on a post or page:

[wp_eMember_compact_login]

If you are placing this on your theme’s template file then use the following PHP fuction where you want it to appear (e.g. header.php, footer.php etc):

<?php echo eMember_compact_login_widget(); ?>

4 Comments »

  • Kira said:

    when I try to use the compact php function in the alt-header, it tells me it’s an undefinded function. What do I need to do?

  • admin (author) said:

    You just need an updated version of the membership plugin. This post will help you with the update:

    http://www.tipsandtricks-hq.com/forum/topic/how-and-when-do-you-get-an-update

  • David Alexander said:

    Is there a list of the css calls to customize the look of things such as the login form?

    I am using the standard login form, but want to be able to style each element within, I can inspect with firebug but not sure of the string to use.

    For example if I wanted to customize

    What would I write for the css in my theme?

  • admin (author) said:

    All the CSS style for this pluing is stored in a file called “eMember_style.css” inside the “wp-eMember” directory. So you just have to modify that file to customize the look of the login form.

Leave your response!

You can subscribe to these comments via RSS.