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

    (@philsbury)

    Hi @juanmarin,

    There’s actually no filter if the age gate is already passed. Perhaps they’re should be though. I’ll have look a bit later and come back to you.

    Thanks
    Phil

    Plugin Author Phil

    (@philsbury)

    Hi @juanmarin,

    I don’t think this works with a filter as in PHP mode it will mean you can never see the homepage.

    If you use the JavaScript version though, then you can do this to make it always show one the home page:

    
    add_action('wp_footer', function () {
        if (is_front_page()) : ?>
            <script>
                jQuery(function(){
                    AgeGate.show();
                });
            </script>
        <?php endif;
    }, 100);
    

    Hope that helps

    Thanks
    Phil

    Thread Starter juanmarin

    (@juanmarin)

    Hi @philsbury

    That was helpful.

    Thank you so much.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Always Visible’ is closed to new replies.