This topic has 4 replies, 3 voices, and was last updated 2 months, 2 weeks ago ago by Andrew Mitchell
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?
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!
OK, this worked. Thank you.
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
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