Title: Login/Logout button
Last modified: August 20, 2016

---

# Login/Logout button

 *  [leenie1](https://wordpress.org/support/users/leenie1/)
 * (@leenie1)
 * [15 years ago](https://wordpress.org/support/topic/loginlogout-button/)
 * I have ‘hard-coded’ a login button into my header but if I create a LOGOUT button
   also how can I make the login turn to logout after the user has logged in? I 
   imagine it will involve using ‘is_user_logged_in’ but I’m not sure how to implement
   it.

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

 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [15 years ago](https://wordpress.org/support/topic/loginlogout-button/#post-2241557)
 * [http://codex.wordpress.org/Function_Reference/wp_loginout](http://codex.wordpress.org/Function_Reference/wp_loginout)
 *  Thread Starter [leenie1](https://wordpress.org/support/users/leenie1/)
 * (@leenie1)
 * [15 years ago](https://wordpress.org/support/topic/loginlogout-button/#post-2241558)
 * Right, I can achieve it with links but I don’t know the proper code for doing
   it with images.

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

The topic ‘Login/Logout button’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [leenie1](https://wordpress.org/support/users/leenie1/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/loginlogout-button/#post-2241558)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
