How to Add a Conditional Login/Logout Menu Item

If you're looking to have a simple login/logout link in your WordPress Menu, then there is an easy solution! We at MemberPress recommend that you use the Login or Logout Menu Item plugin because it is easy to use and it is reliable.

Step by Step Instructions

To add a conditional login/logout menu item to your WordPress site, please follow the steps below:

Important Note: to be able to see all the options available for your menu (including the login/logout menu item), you'll need to check those options in your Screen Options tab shown here

  1. Navigate to your WordPress Dashboard > Plugins > Add New, and search for "Login or Logout Menu Item". It is the one developed by cartpauj. 
  2. Go to the WordPress Dashboard > Appearance > Menus page. 
  3. Create your new menu or select the menu you want the item to appear on. 
    1. Creating a new menu - if you need to create a new menu, under the Menu Structure option, enter the name for the menu and then click the blue Create Menu button to get started. 
    2. Find your menu to edit - to edit an existing menu, use the Select a menu to edit drop down and click select.
  4. Within the Menu Settings for your selected menu, select the locations of your menu. Most prefer using Desktop Horizontal Menu.
  5. With the Add Menu Items option on the left hand side, find the newly added Login/Logout option and then select the checkbox for the Log In|Log Out option, and click the Add to Menu button. 
  6. IMPORTANT NOTE: because this plugin uses WordPress' /wp-login.php url by default, you will need to enable the Disable the standard WordPress registration form found in MemberPress > Settings > Account Tab.

Here is what it will look like:

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.