When they click yes to enter as accept you can redirect them to a different URL.
that’s all
1 Like
Hi there, @Tayeb
Thanks for sharing your idea with us!
We agree that it would be great to have this option in the settings. If more users upvote this idea, we’ll try to consider it in the future.
In the meantime, you can do this using the code below in the Custom JS field on the Appearance tab of your widget’s settings:
const REDIRECT_URL = 'https://elfsight.com/';
document.addEventListener('click', (e) => {
if (e.target.closest('.eapp-age-verification-item-allow-buttons-yes')) {
window.open(REDIRECT_URL, '__blank');
}
});
Replace https://elfsight.com/ in the 1st line of the code with your link
1 Like