age_gate_shown not firing?
-
Hi Phil —
Using v3 (we just updated), our nav is showing ‘behind’ the age gate. This wasn’t the case with V2. I tried using
age_gate_shown
, the listener is added (I see mine in dev tools along with yours) but it never fires. Currently code is there to hide the nav and display an alert but nothing happens (the alert is for testing).This is the function in stockyards.js straight out of your knowledgebase:
window.addEventListener('age_gate_shown', function () { alert('working'); $('#navigation').hide(); });
There might be a better way to accomplish this too, if so I’m all ears —
Thank you! ??
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘age_gate_shown not firing?’ is closed to new replies.