Home » Design & Usage

Using a Compact Login and Join Us Message

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(); ?>

12 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.

  • Simon King said:

    Nope, installed latest version as suggested but still get message Fatal error: Call to undefined function emember_compact_login_widget() in /home/propnorg/public_html/blog/wp-content/themes/tubular-86542/tubular_10/header.php on line 60 when I try to insert
    in the header.

  • admin (author) said:

    @Simon, You have an error in the “function name”. The correct function name is the following (it’s case sensitive):

    eMember_compact_login_widget()

    You can copy and paste the function name from the documentation.

  • Simon King said:

    Sorry, I need more help. I have found the Theme functions (functions.php) file and beneath that a Documentation list but now totally confused. What exactly do I need to do to define the function and from what documentation can I copy and paste the function name and paste it where?
    Many thanks

  • admin (author) said:

    You just need to place the following line (it’s specified in this post). Just copy and paste the following line:

    <?php echo eMember_compact_login_widget(); ?>

  • Merrin said:

    Hi
    I have a website with a Black background and always have trouble with Plugins and have to change the CSS code frequently. I have set up eMember and have managed to change most of the color codes but I cannot figure out how to change this part – “Please Login to view this Content.(Not a member? Join Today!)” Only the links stand out. I also want to change the font family.

    Can you help please.
    Regards,

  • admin (author) said:

    Please post a link to the page where you have this link so I can check the CSS and provide suggestions.

  • Shari said:

    Is there a way to change the text for this? I’d rather it just say Hello, login, and nothing about joining.

  • Ivy said:

    Hi, The following forum post will explain how to customize text and messages that are displayed by the plugin.

    http://www.tipsandtricks-hq.com/forum/topic/how-to-customize-various-textmessages-displayed-by-the-plugin

    Let me know if you do not find the text you are looking for in this file.

Leave your response!

You can subscribe to these comments via RSS.