Title: Adding a login button
Last modified: August 19, 2016

---

# Adding a login button

 *  [madfatter](https://wordpress.org/support/users/madfatter/)
 * (@madfatter)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/adding-a-login-button/)
 * Hi,
 * I’m trying to put a login button in my header that will then display “log out”
   once the user is signed in. Basically I want to recreate what the meta sidebar
   widget login link does. I figure I may be able to use the code from the meta 
   widget but I can’t figure out where to find it in the installation. Can anyone
   point me in the right direction?
 * Thanks.

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

 *  [Rev. Voodoo](https://wordpress.org/support/users/rvoodoo/)
 * (@rvoodoo)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/adding-a-login-button/#post-1437718)
 * `<?php wp_loginout(); ?>`
 * is the bit of code
 *  Thread Starter [madfatter](https://wordpress.org/support/users/madfatter/)
 * (@madfatter)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/adding-a-login-button/#post-1437740)
 * Thank you!

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

The topic ‘Adding a login button’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [madfatter](https://wordpress.org/support/users/madfatter/)
 * Last activity: [16 years, 2 months ago](https://wordpress.org/support/topic/adding-a-login-button/#post-1437740)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
