New Custom Membership Menu Widget in Nav Menus Add On

Set a Custom Menu for members by level via a new widget included in the Nav Menus Add On. The widget specifies the default menu for non-members and visitors, as well as a fallback menu for members of ANY membership level.

View the Add On


How it Works

After installing the Nav Menus Add On (or upgrading to version .3.1), navigate to the Appearance > Widgets page in the WordPress Dashboard. Here, you will see a new available widget labeled “PMPro – Custom Membership Menu” that can be placed in any available widget area in your theme.


Widget settings include:

  • Title: Set a title to display before the menu items. (optional)
  • Members Menu: Select a global menu to display for members of ANY membership level. (optional)

Click the link labeled “Click here to set menus for specific levels.” to expand more options. These options will show each active membership level on your site and allow you to assign a unique menu per level.

Menus must be created in the Appearance > Menus page of the WordPress Dashboard prior to selecting them for display in the widget.


Screenshots


The Default Menu shown in the “Header Right” widget area of a site using Memberlite.


The Members Menu shown to a logged-in member in the “Header Right” widget area of a site using Memberlite.


What else does the Nav Menus Add On do?

Aside from the widget, you can also use the Nav Menus Add On to swap menus set via the Appearance > Menus page of the WordPress Dashboard. For full information on this feature, see the documentation page for the Nav Menus Add On here.

An Easier Way to Preview Your Site as a Member or Non-Member

Here are a few methods to preview your site as a member or non-member without ever having to log out of your administrator account.


Use Separate Browsers or “Private” Browsing

If you have a simple site with a single membership level, one of the easiest ways to preview your site as a member is give yourself as admin the single level. Just navigate to “Edit My Profile” and change your “Membership Level”.

Then, to preview your site as a non-member or site visitor, use either a separate web browser or your favorite browser’s “Private Window” or “Incognito Mode” option. Browsing your site in this mode is a fast way to see the non-member experience without having to log out of your admin account.


pmpro_chrome-private-browsingHow to Enable Private Browsing

  • Chrome: Click the Menu Button > “New Private Window” or Ctrl+Shift+N (PC) and ⌘+Shift+N (Mac)
  • Safari: Click “File” > “New Private Window” or ⌘+Shift+N (Mac)
  • Firefox: Click the Menu Button > “New Private Window” or “File” > “New Private Window” or Ctrl+Shift+P (PC) and ⌘+Shift+P (Mac)
  • Microsoft Edge: Click the Menu Button > “New InPrivate Window” or Ctrl+Shift+P (PC)

Remember that even though you are logged in as an administrator account you do not inherently have a membership level so you may want to create a hidden membership level that has access to everything for your admin account.

The caveat to this approach is that you cannot quickly preview your site as a “logged in” non-member (a user account with no membership level or a cancelled/expired membership).


Use a “User Switching” Plugin

If you have a few levels of membership that you would like to be able to easily preview, the recommended approach is the User Switching plugin by John Blackbourn. This plugin allows you to stay logged in as your admin account, but preview the site as if you were logged in as another account.

user-switching-1For this approach, I recommend setting up a unique user account for each level of membership offered (name your dummy accounts by level name such as “PMPro Plus Tester” and “PMPro Core Tester”). You can also set up a dummy account for a user with no membership level.

Then, just navigate to the Users list in WordPress, locate the account you want to preview and click the “Switch To” link. You can easily switch back to your administrator account by clicking the “Switch back to (display name” link at the very bottom of your website.

The caveat to this approach is that you cannot preview your site as a “logged out” site visitor. Also, each dummy account will need its own email address. If you don’t have the ability to set up a bunch of dummy email accounts, you can get around this by using an email alias (email+otherstuff@domain.com). Just add the “+” then anything you want to your email address before the “@”.


These are the methods we use here at PMPro to preview our site and get a feel for the member experience. If you have another approach to recommend, post a comment below. Thanks!