12% off of LTD using this coupon: TWELVEPERCENTOFF. Promo ends on 2 Dec midnight UTC.
Published on Aug 21, 2019

Age-Based Access using Cookies and Conditions in Oxygen

Sridhar Katakam

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

Code:

This is a premium members-only content.

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

Already a member? Log in below or here.

tagschevron-leftchevron-rightchainangle-rightangle-upangle-downfolder-omagnifiercrossmenuchevron-downarrow-right