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 in Master Addons for Elementor 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.

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.
- 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 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, like Administrator, Editor, Subscriber, or Customer.

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. If you need finer visibility rules, pair it with the Display Conditions extension.
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.

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 stored in the page, not a per-user login, so treat it as a light gate rather than real account security.

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.
- Math Captcha: visitors solve a math problem to continue.

The birthday option fits alcohol, vaping, or adult-content sites. Math captcha is quicker for visitors who just need a lightweight age check. If you want a full-screen age-verification popup instead, see the 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.

It’s a low-friction way to stop casual bots or 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.”
- Saved Section: load any saved Elementor template, like a pricing table, contact form, or video.

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.

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.

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.

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.

Anyone who doesn’t meet the rule never sees it, so you can gate material without bolting on a separate membership plugin. Just keep the password caveat above in mind: this is page-level gating, not a login system.
Common use cases #
- Membership areas: restrict downloads or pricing tables to logged-in subscribers with User Based mode.
- Client portals: hide project files behind a password you share only with the client.
- 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 your content flips between visible and hidden a lot, take a look at the Toggle Content widget for accordion-style reveal patterns too.
On Page Version for Restrict Content #
Popup Version for Restrict Content #
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 protected content appears.
Does the widget support age verification?
Yes. Set the restriction type to Age Restriction, enter a minimum age, and choose Select Birthday or Math Captcha 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 gates; On Page works well for section-level gates.
Can I use a saved Elementor template as the protected content?
Yes. In the Restrict Content section, set Select Source to Saved Section and choose any template from your Elementor library. You can use a saved template for the warning message too.
Wrapping up #
The Restrict Content widget 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 to see what else is there, and check the pricing page for Pro features.
