Additional menu

Get MemberPress today! Start getting paid for the content you create! Get MemberPress Now
  1. Home
  2. Knowledge Base
  3. FAQs
  4. How To
  5. How to Use If Menu with MemberPress

How to Use If Menu with MemberPress

You can customize your menu item visibility with the If Menu – Visibility control for Menu Items plugin. You can set visibility depending on whether your users are logged in or actively subscribed to one of your memberships. MemberPress includes built-in If Menu integration.

This document explains how to use the If Menu plugin with MemberPress to set menu item visibility based on memberships.

Note: This add-on is available to MemberPress Growth and Scale plan members. If you're subscribed to the Launch plan, you can upgrade to the Growth and Scale plan. To upgrade, click the Change Plan link on your account page.

Installation Instructions

Please follow the steps below to install the plugin on your site:

  1. Navigate to your WordPress Dashboard > Plugins > Add New.
  2. Search for “If Menu – Visibility control for Menu Items“. It is the one developed by Layered. 
  3. Install and activate the plugin.

Creating Menus

  1. Go to the Dashboard > Appearance > Menus page. 
  2. Create your new menu or select the menu you want the item to appear on.
    • 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. 
    • Find your menu to edit – to edit an existing menu, use the Select a menu to edit drop-down and click Select.
  3. Within the Menu Settings for your selected menu, select the locations of your menu. Most prefer using the Desktop Horizontal Menu.
  4. With the Add Menu Items option on the left-hand side, add the menu items you need. 

Using If Menu with MemberPress

With the plugin installed and active on your site and your menu created, you can now begin using the If Menu plugin logic:

  1. Go to the WordPress Dashboard > Appearance > Menus page. 
  2. Check the Screen Options tab and enable all the options available for your menu.
  1. In the Menu structure section, find the menu item you would like to add conditional logic to.
  1. Click the down arrow on the right-hand side of the option. 
  2. Check the Enable visibility rules checkbox.
  3. Add the conditional statement(s) that you want, then click the blue Save Menu button. 

MemberPress Specific Logic

The If Menu plugin will have the additional condition of Active on Membership available to you when you meet these two conditions:

  1. You installed and activated MemberPress.
  2. You have created at least one Membership in MemberPress.

To use this condition, select — Any Membership — or the name of one of your active memberships to set up the condition. 

Since MemberPress version 1.8.8, you can also select a rule from the Active Membership Rule group. 

This way, you can display a menu item for users who meet the access conditions of the selected rule without checking each membership individually. You may also do that by using the If Menu's and/or options for the condition.

Was this article helpful?

Related Articles

computer girl

Get MemberPress today!

Start getting paid for the content you create.