How to Create a Log Out Link in Your Menu

If you would like to cre­ate a logout link in your main menu there is a very sim­ple way to do this using the WooCom­merce plu­g­in.

  • In your Word­Press back­end nav­i­gate to WooCom­merce → Set­tings → Accounts → My Account End­points and you will see what the URL of the edit-address should be, it is often set to “/my-accoun­t/­cus­tomer-logout/”
  • Once you find out what the URL is nav­i­gate to Appear­ance → Menus → and select Main Menu (Pri­ma­ry Menu)
  • Add a new link to your menu using the “Links” menu cre­ation option, see screen­shot below to see how we’ve added a cus­tom log out link to the menu.

*Ensure you have enabled Dis­play Mode: Logged In Users, so that the logout menu link only shows for logged in user.

Updated on May 30, 2017

Was this article helpful?

Related Articles