It’s important that visitors to your website can easily login and logout. I’m going to show how to add contextual Login and Logout links to a WordPress website main menu. Let’s do this!

Install the Nav Menu Roles Plugin

  1. Login to your site admin. (NOTE: Flawless Websites users can skip this step.)
  2. Click Plugins in the admin menu (left-sidebar).
  3. Go to the Nav Menu Roles plugin and click the Activate link.

Go To The Menus Admin Page

Appearance / Menus WordPress Admin Menu

  1. Click Appearance / Menus in the admin menu (left-sidebar).

Create A Custom Login Menu

WordPress Custom Login Menu

  1. Click to open the Custom Links section.
  2. Enter /login/ into the URL field.
  3. Enter Login into the Link Text field. (NOTE: You can enter any text you like here).
  4. Click the Add to Menu button.
  5. The new Login menu appears in the Menu Structure pane (right). Drag it (up or down) to the menu position you want.
  6. Click the Login menu Down Arrow Symbol to open the new Login menu in the Menu Structure pane.
  7. Select Logged Out Users to view the new menu.  Click the Logged Out Users radio button under Display Mode. Doing this makes the Logout menu appear only to users who are logged into the site admin.
  8. The new Login menu appears in the Menu Structure pane (right). Drag it (up or down) to the menu position you want.
  9. Click the Save Menu button (top-right or bottom-right).

Create A Custom Logout Menu

WordPress Custom Logout Menu

  1. Click to open the Custom Links section.
  2. Enter /wp-login.php?action=logout into the URL field.
  3. Enter Logout into the Link Text field. (NOTE: You can enter any text you like here).
  4. Click the Add to Menu button.
  5. The new Logout menu appears in the Menu Structure pane (right). Drag it (up or down) to the menu position you want.
  6. Click the Logout menu Down Arrow Symbol to open the new Logout menu in the Menu Structure pane.
  7.   Click the Logged In Users radio button under Display Mode. Doing this makes the Logout menu appear only to users who are logged into the site admin.
  8. Click the Save Menu button (top-right or bottom-right).

That’s all. Here’s to your having a Flawless Website experience.

Get 50% Off The
1-Hour Marketing Plan
Special Launch Offer

Register and Get 50% Off The 1-Hour Marketing Plan (for a limited time).

Share This