Restrict content with the shortcode, block or Elementor widget
Hide part of a page until the visitor is verified, gate single pages strictly, or open the gate from any button.
On this page
Sometimes only part of a page needs protecting — a video, a price list or a product description. Pro gives you four tools.
The per-page “Age verification” box
Every page and post has an Age verification box in the editor sidebar:
| Option | Effect |
|---|---|
| Default | Follows your site-wide settings. |
| Strict | The server withholds the content until the visitor passes. Requires Strict content gating to be set to “Only pages I mark” or “Every page”. |
| Never show the age gate | No popup on this page. |
Gutenberg block
Search the block inserter for Age-restricted content. The block wraps any blocks you place inside it. Unverified visitors see your message and a Verify my age button instead. You can change the message and the button text in the block settings.
Elementor widget
Drag the Age-restricted content widget onto the page and put your protected material in Content for verified visitors. Set the message and button label shown before verification. In the editor the widget is outlined with a dashed box so it’s easy to spot.
Shortcode
[age_restricted message="Please verify your age to watch this video." button="Verify now"]
Your age-restricted content here
[/age_restricted]
Both message and button are optional. The shortcode works in classic posts, widgets and most page builders.
Open the gate from any link or button
Add the CSS class avp-trigger-manual to a link, menu item or Elementor button. Clicking it opens the age gate.
Note: With Strict server-side verification on (Security tab), restricted content only unlocks with the signed cookie, so it can’t be revealed by editing the page in the browser.