Title: Create &#8220;wp-loginout&#8221; function in header
Last modified: August 7, 2023

---

# Create “wp-loginout” function in header

 *  [jaumenik](https://wordpress.org/support/users/jaumenik/)
 * (@jaumenik)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/create-wp-loginout-function-in-header/)
 * I need to place the “wp-loginout” function in the top right corner of the “header”
   section in the “twenty twenty-one” theme. Currently I can insert this function
   as a block inside the page, however in this theme there is no access to edit 
   the “header” section. Is there a way to place this?

Viewing 1 replies (of 1 total)

 *  Moderator [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * (@zoonini)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/create-wp-loginout-function-in-header/#post-16956850)
 * Hi [@jaumenik](https://wordpress.org/support/users/jaumenik/) – there are a couple
   of steps to adding a login/logout link in the header in this classic theme.
 * **Step 1** – [create a child theme](https://developer.wordpress.org/themes/advanced-topics/child-themes/).
   This ensures that your theme-file changes won’t be overwritten every time there’s
   a theme update. (There are also several [child-theme plugins](https://wordpress.org/plugins/search/child+theme/)
   if you don’t want to create it manually.)
 * **Step 2** – in your child theme, place the function where you want it to be 
   displayed.
 * Let me know how it goes or if you need more detailed help.

Viewing 1 replies (of 1 total)

The topic ‘Create “wp-loginout” function in header’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/twentytwentyone/2.8/screenshot.
   png)
 * Twenty Twenty-One
 * [Support Threads](https://wordpress.org/support/theme/twentytwentyone/)
 * [Active Topics](https://wordpress.org/support/theme/twentytwentyone/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/twentytwentyone/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/twentytwentyone/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/create-wp-loginout-function-in-header/#post-16956850)
 * Status: not resolved