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" button 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

Code:

This is a premium members-only content.

To view the rest of the content, please sign up for membership ($27/month).

Already a member? Log in below or here.

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

HIRE ME

Find the article helpful and wish to donate?

DONATE

Comments

For adding code blocks wrap the code in three backticks. Markdown should work.
Provide a URL of your site/webpage if something is not working.
magnifiercross
>
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram
%d bloggers like this: