Elementor Restrict Content Widget (Pro): Gate Content by Role, Password or Age

Restrict Content is a Master Addons Pro widget that puts a gate in front of part of an Elementor page. It has four modes: User Based (WordPress role), Password Based, Age Restriction and Math Captcha, and the gate can sit on the page or open in a popup. Only User Based on the On Page layout keeps the content out of the page for visitors without the right role. The password, age and captcha gates hide content in the browser, so they suit teasers, age notices and giveaways rather than private or paid material.

How to Restrict Content in Elementor

Pick the gate type first, because it decides how private the content really is.

  1. With Master Addons Pro active, check that Restrict Content is switched on in the Master Addons widget settings.
  2. Edit your page with Elementor and drag Restrict Content into a section.
  3. Set the first Restrict Type to On Page or Popup, and the second to User Based, Password Based, Age Restriction or Math Captcha.
  4. Set the rule: Select User Roles, Set Password, Minimum Age with an Age Restrict Type, or Math Type.
  5. In Restrict Content, choose Custom Content or an Elementor Template as the source.
  6. Write the Warning Message, style the gate in the Style tab, then update the page.
Restrict Type dropdowns with User Based, Password Based, Age Restriction and Math Captcha and a role list beside a registered users only message

Four Gate Types and Two Layouts

User Based checks the visitor’s WordPress role on the server, and logged-out visitors always see the warning. Password Based asks for one shared password. Age Restriction checks a Minimum Age with Select Birthday, Enter Age, Checkbox or Submit Confirm. Math Captcha asks an add, subtract or multiply question. Each gate can show On Page or in a Popup that opens on a button click or on page load, as a modal or full screen.

  • For private content: User Based on the On Page layout. Visitors without the role never receive the content.
  • For light gates: Password, Age and Math Captcha hide content in the browser, so the content is still in the page source.
  • Remembered: once a visitor passes a password, age or captcha gate, their browser remembers it on later visits.

Protected Content and Warning Messages

Select Source sets what sits behind the gate: Custom Content from a text editor, or an Elementor Template (a saved section, widget or page). The Warning Message can be a custom title and text, a saved template, or none, with an optional close button.

  • Custom message: write your own title and text for visitors who don’t pass.
  • Template message: load a designed Elementor template with images and links.
  • Error text: separate messages for a wrong password, an empty birthday or a date that doesn’t exist.
Restrict Content style panel and Select Source dropdown with Custom Content and Elementor Template beside a career app landing section
Submit Button Normal and Hover style panel and Message Contents settings beside a math captcha age verification box

Styling the Gate

The Style tab has sections for the Restrict Content area, Popup Style, Message Contents, Password Input, Submit Button, Exit Button and Error Message. Each covers colors, typography and spacing, and the Submit Button has separate Normal and Hover tabs.

  • Buttons: style the submit button and the exit button separately.
  • Messages: title and description colors and typography for the warning.
  • Popup: its own style section for the modal.

Members-Only Content: Restrict Content vs Display Conditions

Both come with Master Addons Pro and both can react to a user’s role, so they are easy to mix up. Display Conditions hides a whole widget or section when its rules match, with no prompt. Restrict Content shows visitors a gate or a message in place of the content.

FeatureRestrict ContentDisplay Conditions
What visitors seeA form, button or warning messageNothing, the element is hidden
RulesUser role, password, age, math captchaVisitor, date and time, single, archive and Easy Digital Downloads conditions
Applies toContent placed inside the widgetAny widget or section
Good forAge notices, teasers, role-only boxes with a messageShowing different elements to different visitors

For members-only content in Elementor, use Restrict Content in User Based mode on the On Page layout, so visitors without the role see a message and never receive the content. If you need sign-ups, payments or membership levels, pair it with a membership plugin. Our Elementor display conditions guide covers the other side in more detail.

Template Viewer
Facebook
Twitter
WhatsApp
Copy Link
Buy Now
Password Based
Password Based
Math Captcha
Math Captcha
Restrict Content with Restricted Content
Restrict Content with Restricted Content
Vault Unlock
Vault Unlock
Captcha Ticket
Captcha Ticket
Age Gate Marquee
Age Gate Marquee

Frequently Asked Questions For Restrict Content

Learn the most asked queries users have about Restrict Content and find answers in one place.
What’s the difference between the “On Page” and “Popup” Restrict Types?

On Page puts the gate, or the content, right where the widget sits. Popup shows a button or opens on page load, and the gate appears in a modal or full-screen overlay. Use On Page with User Based for role-only content, because the popup layout also places the content in the page.

No. The Password, Age and Math Captcha gates hide content in the visitor’s browser, so the content can be found in the page source. They suit teasers, age notices and giveaways. For private or paid material, use User Based with the On Page layout, or a membership plugin.

Is Restrict Content free?

No. Restrict Content is part of Master Addons Pro.

The widget does not save birthdays. It only remembers, in the visitor’s browser, that they passed the gate, so they aren’t asked again on their next visit.

Trending Elementor Widgets & Extensions

Build sophisticated websites in less time.

Master Addons Glassmorphism extension for Elementor: frosted glass cards with the Blur Value control set to 20px

Glassmorphism

Home Free Elementor Glassmorphism Extension: Frosted Glass Effect in One Toggle Glassmorphism is the frosted...
View Details
Master Addons Container Extras extension for Elementor: container capped at a 1400px Max Width, with Max Width, Max Height, Min Width and Min Height controls

Container Extras

Home Elementor Container Max Width and Max Height Controls Container Extras is a free Master...
View Details
Master Addons Patterns extension for Elementor: hero with the Purple Gradient Grid Left style, three more pattern styles and the Enable Pattern panel

Patterns

Home 70+ Free Elementor Background Patterns Patterns is a free Master Addons extension that adds...
View Details
Master Addons Post/Page Duplicator extension for Elementor: MA Duplicator row link in the WordPress Pages list creating a Landing Page - [Duplicated #128] draft

Post/Page Duplicator

Home Duplicate Elementor Pages and Posts in One Click Post/Page Duplicator is a free Master...
View Details
Master Addons Reading Progress Bar extension for Elementor: blue bar 42% filled across the top of a privacy policy page, with enable, position, height and fill color settings

Reading Progress Bar

Home Add a Reading Progress Bar in WordPress (Elementor) Reading Progress Bar is a free...
View Details