Updated on August 22, 2019

This members-only tutorial provides the steps to set up a age restriction in Oxygen where the visitor can select one of "18 or Over" or "Under 18" buttons and accordingly be either shown the page content or a message saying they need to be at least 18 to be able to see the page.

When the "18 or Over" button is clicked, the page will reload and shows the page content.

When the user pressed "Under 18" button, we can show a message like this:

This age confirmation page will appear every 30 days and this period is configurable.

This is going to work for any page of the site.

Step 1

Install and activate Code Snippets plugin.

Go to Snippets > Add New.

Title: [Condition] Visitor Age


This is a premium members-only content.

To view the rest of the content, please sign up for membership ($47/month or $399 one-time).

Already a member? Log in below or here.

Need help implementing a tutorial in your site or want to hire me for custom work?


Find the article helpful and wish to donate?



You need to be logged in to view and post comments.
Not a member yet? Join here.
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram
%d bloggers like this: