Title: Login Widget
Last modified: August 18, 2016

---

# Login Widget

 *  Resolved [sniperclops](https://wordpress.org/support/users/sniperclops/)
 * (@sniperclops)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/login-widget/)
 * Greetings,
 * Right now I have a static “login link” on my site which you can see here ( [http://canuckster.org](http://canuckster.org)).
   I was wondering if there is a login widget that would allow one to login and 
   logout?
 * Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/login-widget/#post-586073)
 * The 2.2.1 built-in Meta widget, has the login feature.
 *  Thread Starter [sniperclops](https://wordpress.org/support/users/sniperclops/)
 * (@sniperclops)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/login-widget/#post-586074)
 * Used this hack on the top left of my page and it does what I want…
 * <?php
 * global $user_identity;
    get_currentuserinfo();
 * if ($user_identity == ”) {
    echo(‘Welcome Guest, why not [register](https://wordpress.org/support/topic/login-widget/wp-login.php?action=register)
   or [login](https://wordpress.org/support/topic/login-widget/wp-login.php?output_format=md)
   to post comments’); } else { echo(‘Welcome <b>’ . $user_identity . ‘</b>’); }
 * ?>

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Login Widget’ is closed to new replies.

## Tags

 * [login](https://wordpress.org/support/topic-tag/login/)
 * [widget](https://wordpress.org/support/topic-tag/widget/)

 * 2 replies
 * 2 participants
 * Last reply from: [sniperclops](https://wordpress.org/support/users/sniperclops/)
 * Last activity: [18 years, 9 months ago](https://wordpress.org/support/topic/login-widget/#post-586074)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
