• Hi,

    I am using vue js as my theme framework and age gate is showing as expected on first page load. But, when I removed the DOM using developer tools and change to another route on my vue js app then it won’t show up again (well this is expected). Is there a code to force age gate to re-render its DOM elements?

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

    (@philsbury)

    Hi @marcoelisa,

    Sorry for the slow reply.

    That’d normally be expected behaviour – assuming they’d passed the age gate on the first load it wouldn’t show on subsequent pages.

    If you are using the javascript version of age gate you can call AgeGate.show(). However that will depend on how much of the DOM you’re replacing. I think as long as the template is still there (id tmpl-age-gate) and the params (age_gate_params) you should be ok to call it.

    Thanks
    Phil

    Thread Starter marcoelisa

    (@marcoelisa)

    Thank you for your reply,

    Yes I’m using the javascript version. I will surely try the AgeGate.show() function.

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Trigger on vue js route changes’ is closed to new replies.