• Hi
    Right now I have my main age gate for the whole site but I need to display a different message for a specific page.

    Is it possible to have several age gates?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Phil

    (@philsbury)

    Hi @antwake,

    Sorry for the slow reply.

    You can’t have multiple age gates but you can filter the titles/messages with <a href="https://agegate.io/docs/hooks/filters/age_gate_logo">age_gate_logo</a> and <a href="https://agegate.io/docs/hooks/filters/age_gate_messaging">age_gate_messaging</a> so you could add a custom field to a particular page of test the page data inside the filter.

    Thanks
    Phil

    Thread Starter biloute

    (@antwake)

    you mean the age gate will detect a custom field in a specific page?

    My use case is that I want to display another validation checkbox when people try to access a specific page

    Thread Starter biloute

    (@antwake)

    also your staging is indexed ??

    Plugin Author Phil

    (@philsbury)

    Hi @antwake – oh, what are you seeing indexed? :/

    That use case is a little trickier, but probably doable. If you have a look at this guide it goes through how to add and validate extra fields (a terms checkbox in this example).

    You’ll want to add some conditions though to make sure you’re on the page you want, if the ID is know and won’t change you could test that, or maybe create a custom meta field it you want it to be a bit more dynamic?

    Thanks
    Phil

    Thread Starter biloute

    (@antwake)

    thanks I’ll take a look

    in the meantine, if you perform this search https://www.google.com/search?q=%22age_gate_messaging%22 , the 4th search result is your Staging website (https://staging.asylumdigital.co.uk/docs/shortcodes/age-gate)

    Also you seem to have a SSL problem with the 2nd search result https://wordpressagegate.com/docs/hooks/filters/age_gate_before

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to add more than one age gate’ is closed to new replies.