---
title: Restrict Content Settings
description: "Sometimes a page needs a gate. Members-only pricing, an age-gated product video, a client portal, a coupon hidden behind a password. The [Restrict Content widget](https://master-addons.com/element/restrict-content/) in [Master Addons Pro](https://master-addons.com/widgets-and-extensions/) puts that gate inside any Elementor section. You can **restrict content…"
url: "https://master-addons.com/docs/addons/restrict-content-for-elementor/"
updated: "2026-09-16"
category: Addons
---

# Restrict Content Settings

Sometimes a page needs a gate. Members-only pricing, an age-gated product video, a client portal, a coupon hidden behind a password. The [Restrict Content widget](https://master-addons.com/element/restrict-content/) in [Master Addons Pro](https://master-addons.com/widgets-and-extensions/) puts that gate inside any Elementor section. You can **restrict content in Elementor** by user role, password, age, or a simple math captcha, and the prompt can show inline or as a popup.

Below I go through each restriction type and the settings you'll actually touch, so you can pick the right gate for what you're protecting.

![Restrict Content widget inside the Master Addons section of the Elementor panel](https://d1asvmc6qcowgk.cloudfront.net/wp-content/uploads/2026/07/05092221/01-restrict-content-widget-in-panel.webp)

## What the Restrict Content widget does

The widget wraps whatever content you want to protect. A visitor sees either that content or a prompt, depending on the rule you set. There are four restriction types:

- **User Based:** show or hide the content based on the visitor's WordPress user role.
- **Password Based:** ask the visitor to enter a password you set.
- **Age Restriction:** require the visitor to confirm they meet a minimum age.
- **Math Captcha:** ask the visitor to solve a simple math problem.

You also decide how the prompt shows up. **On Page** drops the restriction box right where the widget sits. **Popup** opens it in a modal overlay.

## Before you start

- **WordPress** with **Elementor** installed and active.
- **Master Addons for Elementor** installed and active. If you haven't installed it yet, follow the [installation guide](https://master-addons.com/docs/getting-started/installing-plugin/).
- A [Master Addons Pro](https://master-addons.com/pricing/) license, with the Restrict Content widget enabled in the Master Addons options panel.
- Optional: a saved Elementor template, if you want to load one as the restricted content or the warning message.

## Add the widget to your page

Open the [Elementor editor](https://elementor.com/help/the-editor/) and search the widgets panel for "Restrict Content." Drag the Master Addons **Restrict Content** widget into the section where you want the gate. It loads with some default text and the Content tab already open.

## Restrict content by user role

Reach for the **User Based** option when only certain WordPress users should see the content. In the Content tab, set the second **Restrict Type** dropdown to **User Based**. A **Select User Roles** field shows up. Pick one or more [WordPress user roles](https://wordpress.org/documentation/article/roles-and-capabilities/), like Administrator, Editor, Subscriber, or Customer.

![User Based restriction type with Administrator role selected in the Restrict Content widget](https://d1asvmc6qcowgk.cloudfront.net/wp-content/uploads/2026/07/05092518/07-user-based-role-selection-1.webp)

Anyone not logged in with one of the selected roles gets the warning message instead of the protected content. One thing to keep in mind: logged-out visitors have no role at all, so they'll always hit the warning here. This mode works well for membership areas, client portals, or staff-only downloads. Use it with the **On Page** layout, which is the only combination that keeps the content off the page for visitors without the role. If you need finer visibility rules, pair it with the [Display Conditions extension](https://master-addons.com/extension/display-conditions/).

## Password protect an Elementor section

Set the second **Restrict Type** dropdown to **Password Based**, then type the password into the **Set Password** field. On the front end, visitors get a password field and a Submit button, and the protected content only appears once they enter the right password.

![Password Based restriction with a set password field and password prompt on the canvas](https://d1asvmc6qcowgk.cloudfront.net/wp-content/uploads/2026/07/05092508/05-password-based-restriction-1.webp)

You can rewrite the placeholder text in the **Password Field** section. The demo uses "Enter Password," but "Type Password" or "Client Access Code" work just as well. Worth remembering: this is a single shared password, and both the password and the content are in the page source, so treat it as a light gate for teasers rather than protection for private material.

![Password Field section showing the placeholder text control set to Type Password](https://d1asvmc6qcowgk.cloudfront.net/wp-content/uploads/2026/07/05092513/06-password-field-placeholder-1.webp)

## Add age verification in Elementor

Set the second **Restrict Type** dropdown to **Age Restriction** and enter a **Minimum Age**, say 18 or 21. Then choose the **Age Restrict Type**:

- **Select Birthday:** visitors pick their birth date from day, month, and year fields.
- **Enter Age, Checkbox or Submit Confirm:** visitors type their age, tick a confirmation box, or click a confirm button.

![Age Restriction settings with minimum age 18 and Select Birthday type showing DD MM YYYY fields](https://d1asvmc6qcowgk.cloudfront.net/wp-content/uploads/2026/07/05092458/02-age-restriction-birthday-1.webp)

The birthday option fits alcohol, vaping or adult-content sites as an age notice. A checkbox or confirm button is quicker when a simple acknowledgement is enough. If you want a full-screen age-verification popup instead, see the [Age Verification for Elementor](https://master-addons.com/age-verification-for-elementor/) guide.

## Use math captcha to restrict content

Set the second **Restrict Type** dropdown to **Math Captcha**, then pick the **Math Type**: Add, Subtract, or Multiply. The widget spits out a random problem like "11 x 13 =" and the visitor has to solve it.

![Math Captcha restriction showing Age Verification 11 x 13 equals with a submit field](https://d1asvmc6qcowgk.cloudfront.net/wp-content/uploads/2026/07/05092503/03-math-captcha-restriction-1.webp)

It's a low-friction way to add a playful gate to a contest or giveaway page. Switch the math type now and then so the challenge doesn't get predictable.

## Choose what to protect

The **Restrict Content** section is where you set the actual content behind the gate. Open it and set **Select Source** to one of two options:

- **Custom Content:** type or paste content straight into the WYSIWYG editor. The demo uses the text, "This is your content that you want to be restricted by either user role or password."
- **Elementor Template:** load a saved section, widget or page template, like a pricing table, contact form, or video.

![Restrict Content section with Select Source set to Custom Content and sample text in the editor](https://d1asvmc6qcowgk.cloudfront.net/wp-content/uploads/2026/07/05092311/04-restrict-content-custom-content.webp)

Saved sections earn their keep when the protected content is anything more than plain text. Design it once as a template, then drop it inside the Restrict Content widget wherever you need it.

## Set the warning message

When a visitor fails the rule, the widget shows a warning. You handle this in the **Warning Message** section. Set **Message Type** to:

- **Custom Message:** write your own title and body text.
- **Elementor Template:** load a saved template for a designed look.
- **None:** hide the warning entirely.

![Warning Message section with Custom Message type, Age Verification title, and permission message](https://d1asvmc6qcowgk.cloudfront.net/wp-content/uploads/2026/07/05092524/08-warning-message-settings-1.webp)

The demo uses "Age Verification" as the title and "You don't have permission to see this content." as the message. You can also flip **Show Warnings?** and **Close Button** on or off. The close button matters most in popup mode, since it gives visitors a way to dismiss the prompt if they'd rather not proceed.

## On-page vs popup display

The first **Restrict Type** dropdown controls where the prompt lands. Pick **On Page** to embed the restriction box right in the page layout. Pick **Popup** to open it in a centered modal.

![Restrict Type set to Popup with Password Based protection and Popup Settings section visible](https://d1asvmc6qcowgk.cloudfront.net/wp-content/uploads/2026/07/05092534/11-popup-mode-password.webp)

On Page mode fits when the protected content is one piece of a normal section, like a members-only download box. Popup mode fits when you want to gate the whole page, like a full-screen age check before anyone sees the site.

## Style the widget

The **Style** tab is broken into sections that line up with the parts of the widget:

- **Restrict Content:** color, background, margin, padding, and typography for the protected content area.
- **Message Contents:** title color, description color, warning message background, padding, and margin.
- **Submit Button:** button colors, typography, and spacing.
- **Error Message:** text color and typography for failed attempts.

![Style tab open on Restrict Content section showing color, background, padding, and typography controls](https://d1asvmc6qcowgk.cloudfront.net/wp-content/uploads/2026/07/05092529/09-style-restrict-content.webp)

Use these to make the restriction prompt match the rest of your site. When the warning box uses your own colors and type, it reads as part of the page instead of a bolt-on.

## The result on the live page

Once the visitor passes the rule, the protected content shows up. In the demo, the plain text content appears on the front end the moment the correct input goes in.

![Live page showing the unlocked protected content text after passing the restriction](https://d1asvmc6qcowgk.cloudfront.net/wp-content/uploads/2026/07/05092539/12-frontend-unlocked-content.webp)

Anyone who doesn't meet a User Based rule never receives it. The password, age and captcha gates only hide the content in the browser, so keep them for material that is fine to be public.

## Common use cases

- **Membership areas:** restrict downloads or pricing tables to logged-in subscribers with User Based mode.
- **Client portals:** give each client a WordPress account and role, then use User Based mode.
- **Age-gated products:** use Age Restriction for alcohol, adult, or pharmaceutical content.
- **Contest entries:** use Math Captcha to add a light gate to a giveaway.
- **Private course previews:** show a lesson teaser to everyone and unlock the full video for enrolled students.

If you only need visitors to switch between two versions of a section, look at the [Toggle Content widget](https://master-addons.com/element/toggle-content/) instead. It swaps content on click and does not restrict anyone.

## On Page Version for Restrict Content

[Restrict Content For Elementor - On page variations](https://www.youtube.com/embed/Alc1R_W5_Z8?feature=oembed)

## Popup Version for Restrict Content

[Restrict Content For Elementor Popup Variations](https://www.youtube.com/embed/LQWiug-IyRU?feature=oembed)

## Frequently Asked Questions

   Can I restrict an Elementor section by user role?

Yes. Set the Restrict Content widget's second Restrict Type dropdown to User Based, then select the WordPress roles that should see the content. Visitors without those roles get the warning message instead.

 How do I password protect an Elementor section?

Drag the Restrict Content widget into the section, set the restriction type to Password Based, and enter a password in the Set Password field. Visitors have to enter that password before the content appears. The password and content are still in the page source, so use User Based mode for anything private.

 Does the widget support age verification?

Yes. Set the restriction type to Age Restriction, enter a minimum age, and choose Select Birthday, Enter Age, Checkbox or Submit Confirm as the verification method.

 What is the difference between On Page and Popup modes?

On Page embeds the restriction prompt inside the page layout where the widget sits. Popup opens the prompt as a modal overlay. Popup works well for full-page age notices, and On Page with User Based is the choice for role-only content.

 Can I use a saved Elementor template as the protected content?

Yes. In the Restrict Content section, set Select Source to Elementor Template and choose a saved section, widget or page. You can use a saved template for the warning message too.

## Wrapping up

The [Restrict Content widget](https://master-addons.com/element/restrict-content/) gives you a few different ways to gate content in Elementor without extra plugins. User role protection, a password, age verification, a math captcha, it handles all of them inside the Elementor interface you already know. Browse the full set of [Master Addons widgets and extensions](https://master-addons.com/widgets-and-extensions/) to see what else is there, and check the [pricing page](https://master-addons.com/pricing/) for Pro features.
