Тёмный

How to Create an Age Gate Popup [Advanced PRO] 

Elementor
Подписаться 345 тыс.
Просмотров 16 тыс.
50% 1

Опубликовано:

 

13 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 34   
@skyhightech2259
@skyhightech2259 Год назад
AWESOME!!!! This is exactly what I was looking for !! Just one quick question.. How can I add remember me option in this popup?
@mahonimakkaroni2187
@mahonimakkaroni2187 2 года назад
Interesting. Will Google be still able to index the website? Any experiences?
@brett-westgrove-country-music
@brett-westgrove-country-music 11 месяцев назад
Elementor - it would be great if you'd update this to work with the new version. That or take this down - it's a bit frustrating to put work in only to have it not work, and then having to go to the youtube comments to get validation of that. I can't imagine there isn't a solution in the new Elementor so help us out!!!
@carolgallmeyer4984
@carolgallmeyer4984 Год назад
It works! Simple and effective. Thanks. :)
@simonjcarter007
@simonjcarter007 Год назад
Hey Carol, I am trying to implement this, however my failed popup doesn't show despite putting the shortcode ID. Was there anything special you had to do to get this to work?
@darekgtayo6143
@darekgtayo6143 2 года назад
Nice one. Thanks
@Dudeske
@Dudeske 10 месяцев назад
Thank you for the tuto ! Unfortunatly, it doesn't work anymore...
@stormysackett2266
@stormysackett2266 2 года назад
It doesn't seem to be triggering the denial pop-up and I can't find any differences in what was done with the video. I did the last one with the birthdate. Any suggestions for troubleshooting?
@simonjcarter007
@simonjcarter007 Год назад
I'm having teh same issue. I have reached out to support and will reply here if you still need help with it
@DAAN_MUSIC
@DAAN_MUSIC Год назад
@@simonjcarter007 Hi Simon, i havent gotten it to work completely, however I found that changing the < and > to the brackets it is functional. The denied popup still does not display unfortunately however the popup wont close. Did you get any assistance from support?
@simonjcarter007
@simonjcarter007 Год назад
@@DAAN_MUSIC Yeah they advised me not to use it lol! It was built using an old framework apparently. I've just used the tick to accept you're over 18 for now. Client ok with it but not tthe ideal solution
@DAAN_MUSIC
@DAAN_MUSIC Год назад
@@simonjcarter007 Thanks for getting back to me. Highly appreciated. 😁👍
@maximillianwee4312
@maximillianwee4312 Год назад
@@DAAN_MUSIC ​ @Simon Carter You can rectify this by changing "if(age &lt; 18 || age &gt; Infinity)" to "if(age < 18)". If your country has a different age requirement, just change 18 manually.
@nolderoos7997
@nolderoos7997 2 месяца назад
FIX FOR BROKEN SCRIPT: You need to change "if(age &lt; 18 || age &gt; Infinity)" in the script provided to "if(age < 18) and it works!
@elevateyoursoul8
@elevateyoursoul8 2 года назад
I have a problem, the cookie plugin show together this popup... and if I click on Reject cookies or Allow cookies, the popup page will be closed automatically... and this is not a good job, how can i solve this? thank you.... other that, another problem is: the popup show 0.2 second after the home page has already load, this eliminates the surprise effect
@nasrockz1
@nasrockz1 2 года назад
They can actually inspect element and delete the pop up section to view the content. If there is any work around for it, it would be highly appreciated.
@nick0488
@nick0488 2 года назад
I think they are more likely to put in a wrong date of birth before deleting the popup section
@zyedonty7250
@zyedonty7250 2 года назад
Nice Tutorial And Thanks....
@webnim-uk
@webnim-uk 2 года назад
Amazing thank you, Elementor Team😎😎
@elgiganten6154
@elgiganten6154 11 месяцев назад
does this affect seo ?
@bySterling
@bySterling 2 года назад
So awesome and GRT looking wine site! Would luv 💯 if these amazing demos you showcase were in our Pro import options 🎉💪🏻💻⚡️🙏🏻🎶👍🏻
@enriqueleao
@enriqueleao 2 года назад
Instead of age can I do that with a Password?
@dianelaidlaw837
@dianelaidlaw837 2 года назад
Yes. instead of creating variables for ages and date just do a const for a password. like const password = "R£h7592n"
@michaelhenke4621
@michaelhenke4621 9 месяцев назад
Sadly, the content of the popup is not responsive...
@Elementor
@Elementor 9 месяцев назад
@michaelhenke4621 thanks for your comment. You can use the responsive settings in the Elementor Editor to make it responsive.
@lewisrobinovitch9065
@lewisrobinovitch9065 2 года назад
I don't think this works anymore.
@AdamantJHS
@AdamantJHS 2 года назад
Yeah, I'm having difficulties getting this to work despite following the tutorial. Was wondering if it was my cookies/GDPR compliance plugin causing a conflict, but doesn't seem to work even with that plugin disabled...
@simonjcarter007
@simonjcarter007 Год назад
@@AdamantJHS , were you able to get this working by any chance?
@maximillianwee4312
@maximillianwee4312 Год назад
​@@simonjcarter007 You can rectify this by changing "if(age &lt; 18 || age &gt; Infinity)" to "if(age < 18)". If your country has a different age requirement, just change 18 manually.
@HanzWors
@HanzWors 6 месяцев назад
@@maximillianwee4312 thanks dude, this worked
@TannerNaeher
@TannerNaeher Год назад
A fixed script for anyone needing it. Also actually checks the users month and day they were born, not just the year. Just change your access denied id: function dateDiffInYears (oldDate, newDate) { let oldY = oldDate.getFullYear(); let oldM = oldDate.getMonth(); let oldD = oldDate.getDate(); let newY = newDate.getFullYear(); let newM = newDate.getMonth(); let newD = newDate.getDate(); var diff = newY - oldY; if (oldM > newM) { diff--; } else { if (oldM == newM) { if (oldD > newD) { diff--; } } } return diff; } document.getElementById ("dateofbirthsubmit").addEventListener ('click', function (event) { var dateString = document.getElementById('form-field-dateofbirth').value; if (dateString !=='') { let today = new Date(); let birthDate = new Date (dateString + 'T00:00:00.000'); let age = dateDiffInYears (birthDate, today); if (age < 18 || age > Infinity) { elementorProFrontend.modules.popup.showPopup ({id:50}, event); // Change the id to the Access Denied Id event.preventDefault(); } } else { alert ("You must provide your date of birth!"); } });
@AllenLu
@AllenLu Год назад
this works perfect man!
@TannerNaeher
@TannerNaeher Год назад
@@AllenLu Glad it helped someone else :)
Далее
Create a directory using Elementor, ACF & CPT UI
32:02
Просмотров 106 тыс.
Как подписать? 😂 #shorts
00:10
Просмотров 1,4 млн
The Easiest Way to Build Websites
10:56
Просмотров 466 тыс.
The secret to mastering CSS layouts
17:11
Просмотров 280 тыс.
11 Cool Section Layouts For Your Next Website
7:54
Просмотров 1,7 тыс.
Please stop using px for font-size.
15:18
Просмотров 156 тыс.
How Much Do Blogs Earn in 2022?  It Changed Again!
15:41
The Biggest Mistake Beginners Make When Web Scraping
10:21
Why Beautiful Websites Don’t Convert
12:57
Просмотров 85 тыс.
Create Vibrant Gradient Backgrounds in Elementor
10:11
[01] Layout Optimization Best Practice
22:16
Просмотров 206 тыс.