A
A
Alexander Ruzhevich2015-12-08 17:23:09
WordPress
Alexander Ruzhevich, 2015-12-08 17:23:09

How do I add age verification to my site?

Good day, dear, can anyone tell me how to add an age check when entering the site?
That is, there is a pop-up translucent window at the entrance in which there are 4 drop-down lists with "day" "month" "year" "country selection" and the "confirm" button. I searched in Runet, on foreign sites. I installed the Age Verify plugin for wordpress, but there is no way to style (I can be wrong if someone corrects me, I will be grateful) the window for the design I need. There is information on foreign sites, but it is in the form of finished products, that is, you need to copy one line of code to your site, but you really don’t want to use a third-party resource. If anyone knows the solution please tell me.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Ruzhevich, 2015-12-08
@ruzhevich

The solution has been found! A few hours of climbing the Age Verify plugin gave its result. Everything is configured. It was just necessary to remove everything from the "class-age-verify" file that is enclosed in the "style" tag in which the plugin prescribed the background style that covered the entire page and the background of the window in which everything is entered. In order to add your content to the pop-up window, you need to find the #av-overlay block in the same "class-age-verify" file and add everything there in the usual way, everything is configured through styles from the plugin, so everything is convenient, any appearance .

O
Oleg Spiridonov, 2015-12-08
@spd78

After loading the page with the script, display a translucent div with the form above the transparent background, this is if you do not go inside WP.
In principle, business for 10-20 lines of code.
And plugins are the same "third-party resource", the fewer third-party plugins - the livelier the site.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question