Support » Plugin: Age Gate » Disable top navigation before Age Gate

  • Resolved Scott Kolbe

    (@scottkolbe)


    Good evening. I looked through the forum but didn’t find any information on placing top-level navigation behind the age gate. Currently I can click on the navigation items, which briefly flashes the destination page then replaces with the Age Gate if not yet verified. This is fine, but I have one navigation item (Guided Tour) along with Facebook Messenger which are clickable outside the Age Gate. Any thoughts on how to treat those two items (which are their own plugins) as the other nav items, not showing content until Age Gate verification occurs?

    Let me know if there are questions, thanks in advance for any advice.

    Scott

    The page I need help with: [log in to see the link]

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

    (@philsbury)

    Hi @scottkolbe,

    Sorry fo the delay in getting back to you.

    You should be able to hide it with the following css:

    
    .age-gate-restricted div#fb-root {
        display: none;
    }
    

    It’ll then reshow when a user passes the verification. You can put it in your theme css, or the css editor in the age gate advanced settings.

    The tour one looks ok to me. If you’re still having issues with it let me know.

    Thanks
    Phil

    Thanks Phil, I appreciate the response! That worked for the Facebook Messenger plugin and I was able to hide the top/sticky navigation using:

    body.age-restriction .header {
    display:none;
    }

    Any thoughts on why the tour isn’t displaying on mobile? Is there a difference when the “trigger” for the tour is part of the mobile burger navigation versus desktop?

    Thanks again, have a great day!

    Scott

    Hi Phil,

    I have a similar situation (top navigation showing on the gate page) and could use your advice: https://www.rusticspirits.com. This only happens with Age Gate in javascript mode, which is needed with Kinsta Cache running. AG version is 2.2.2.

    Thanks in advance,

    Jason

    Sorry, Phil, the issue I’m having with the tour is unrelated to the Age Gate. Great product, timely customer service. Thanks so much!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.