Age verify functionality broke after updating theme today

This topic has 4 replies, 3 voices, and was last updated 1 months, 2 weeks ago ago by Andrew Mitchell

  • Avatar: sethr
    sethr
    Participant
    October 7, 2024 at 20:21

    Age verify functionality broke after updating theme today. User can select NO, but cannot select YES, nothing happens—pop up doesn’t go away when selecting yes – which is the one they have to select to access site!

    To make sure site was accessible and our customers could shop, I have now turned off the age verification function from the theme (To note: I took the over 21 language and smashed it into the GDPR pop up for now so that we had the language visible somewhere). SO to see the issue live, we will have to turn it back on—so when you see this ticket—i guess you could go do that for a moment if required.

    On a related note—is there a way to roll back a theme update to the previous?

    Please, contact administrator
    for this information.
    3 Answers
    Avatar: Justin
    Luca Rossi
    Support staff
    October 8, 2024 at 08:02

    Hi @sethr,

    Please add the following code under functions.php file locates in your child theme:

    
    add_action('wp_footer', 'n2t_wp_footer', 999);
    function n2t_wp_footer(){
        ?>
        <script>
            jQuery( function($){
                $(document).ready(function(){
                    $('.et-age-verify-popup .et-close-popup').off('click').click(function(){
                        etTheme.setCookie('age_verify_popup_shows', 'false', 1);
                        $('.et-age-verify-popup').addClass('et-popup-removing');
                        setTimeout(function () {
                            $('.et-age-verify-popup').remove();
                        }, 400);
                    });
                })
            });
        </script>
        <?php
    }
    

    Hope it helps!

    Avatar: sethr
    sethr
    Participant
    October 8, 2024 at 14:52

    OK, this worked. Thank you.

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    October 8, 2024 at 14:53

    Dear sethr,

    Choosing our theme reflects your commitment to quality, and for that, we’re genuinely grateful. As we constantly strive to elevate your experience, your feedback is an invaluable gift. Could you kindly take a moment to rate our product with 5 stars on ThemeForest?

    Click here to share your insights: https://themeforest.net/downloads

    Your support fuels our journey, and we appreciate it more than words can express.

    Best Regards,
    The 8Theme Team

  • Viewing 4 results - 1 through 4 (of 4 total)

The issue related to '‘Age verify functionality broke after updating theme today’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.