• Resolved testavimasweb

    (@testavimasweb)


    Hello Alex, i have installed your age verification WordPress plugin and it works great, but is it posible to remove Underage Message and simply replace it to redirect to google?
    Because the popping alert message is just bothering me.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author alexstandiford

    (@alexstandiford)

    Currently, this is tricky to do. The only way I can think that this can be done without directly overwriting the source code is to follow these steps:

    1. Enqueue a new script using wp_enqueue_script() from your functions.php file
    2. Override the doActions() method shown on line 128 here: https://github.com/alexstandiford/easy-age-verifier/blob/master/lib/assets/js/verifier.js#L130-L132 – You would want to replace lines 130-132 with your custom actions

    I recognize that this is far from ideal, but as of now, that’s the best thing I can think of, and I’m honestly not even sure if that would work. I’d say your best bet is to either leave it be or find a different plugin, unfortunately. I’ll publish an update to the plugin in August, and will be sure to include an easier way to do this.

    Thread Starter testavimasweb

    (@testavimasweb)

    Well thank you anyway ?? . I hope that next update will have an option to turn it off. For now I will have to do something like you suggested. Its a nice plugin, but that alert is way too annoying and unnecessary.

    Plugin Author alexstandiford

    (@alexstandiford)

    Cheers. Sorry I couldn’t be more helpful!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Is it posible to remove Underage Message’ is closed to new replies.