v3

Adding custom class names and attributes

In version 3 you can easily add classes or other attributes to Age Gate elements, for example:…

Read more

age_gate_shown

JavaScript event fired when a user is shown Age Gate. Note:agegateshown is also fired for legacy reasons…

Read more

age_gate_failed

JavaScript event fired when a user fails Age Gate. Note:agegatefailed is also fired for legacy reasons but…

Read more

Advanced example

In this guide, we’ll be adding multiple fields that aren’t validated by default by Age Gate, ensure…

Read more

CSS Classnames

Default class names in version 3 Key V3 class name age-gate-html .age-gate__restricted.age-gate__restricted--standard age-gate-headline .age-gate__headline age-gate-wrapper .age-gate__wrapper age-gate-background-colour…

Read more

Adding Custom Form Fields

From Age Gate v2 you can add custom fields to the challenge form. The process has been…

Read more