It doesn’t work
-
The restriction only works when I move from the (future) homepage to another page. But I need it to work as soon as someone visits the website. Every page of it (just once).
Could you please help me? Thanks
The page I need help with: [log in to see the link]
-
Hi @riccardomion,
What settings are you using? If you go to Advanced ad enable Import/Export you can get them in JSON format if you want to post them here.
To do every page though, you should have “All content” selected from the Restriction settings. It will then challenge the first time a user hits any page.
If you have any caching on the site or server, be sure to use the JAvaScript version in the advanced settings, then clear any caches
Thanks
PhilHi Phil,
Thanks a lot for replying and sorry for my late reply.
I do have “All content” selected in the settings.
Here are the settings:
{ "version": "2.3.0", "restrictions": { "wp_age_gate_restrictions": { "min_age": "18", "restriction_type": "all", "multi_age": 0, "restrict_register": 1, "input_type": "buttons", "inherit_category": 0, "remember": "1", "remember_days": "365", "remember_timescale": "days", "remember_auto_check": "1", "date_format": "ddmmyyyy", "ignore_logged": 0, "rechallenge": "1", "fail_link_title": "", "fail_link": "" } }, "messages": { "wp_age_gate_messages": { "instruction": "Verifica la tua et\u00e0", "messaging": "Per visitare il nostro sito devi essere maggiorenne", "invalid_input_msg": "L'input non \u00e8 valido", "under_age_msg": "Non hai i requisiti per visualizzare questo contenuto", "generic_error_msg": "An error occurred, please try again", "remember_me_text": "Memorizza dati", "yes_no_message": "Hai %s anni o pi\u00f9?", "yes_text": "S\u00ec", "no_text": "No", "additional": "", "button_text": "Invia", "cookie_message": "Your browser does not support cookies, you may experience problems entering this site", "text_day": "Giorno", "text_month": "Mese", "text_year": "Anno" }, "wp_age_gate_validation_messages": { "validate_required": "The {field} field is required", "validate_numeric": "The {field} field must be a number", "validate_max_len": "The {field} field needs to be {param} characters or less", "validate_min_len": "The {field} field needs to be at least {param} characters", "validate_min_numeric": "The {field} field needs to be a numeric value, equal to, or higher than {param}", "validate_max_numeric": "The {field} field needs to be a numeric value, equal to, or lower than {param}", "validate_min_age": "The {field} field needs to have an age greater than or equal to {param}" } }, "appearance": { "wp_age_gate_appearance": { "logo": "510", "background_colour": "", "background_opacity": "1", "background_image": "511", "background_image_opacity": "1", "foreground_colour": "", "foreground_opacity": "1", "text_colour": "", "styling": "1", "device_width": "1", "switch_title": 0, "custom_title": "Verifica", "auto_tab": 0, "title_separator": "-", "title_format": "page-name", "transition": 0, "background_pos_x": "center", "background_pos_y": "center" } }, "advanced": { "wp_age_gate_advanced": { "use_js": 0, "save_to_file": 0, "custom_css": "", "dev_notify": 0, "dev_hide_warning": 0, "anonymous_age_gate": 0, "endpoint": "ajax", "use_default_lang": "1", "use_meta_box": 0, "inherit_taxonomies": 0, "custom_bots": [], "enable_quicktags": 0, "full_nav": "toggle", "enable_import_export": "1", "filter_qs": 0, "post_to_self": 0, "js_hooks": 0 } }, "access": { "wp_age_gate_access": { "post": 0, "page": 0, "attachment": 0, "revision": 0, "nav_menu_item": 0, "custom_css": 0, "customize_changeset": 0, "oembed_cache": 0, "user_request": 0, "wp_block": 0, "scheduled-action": 0, "product": 0, "product_variation": 0, "shop_order": 0, "shop_order_refund": 0, "shop_coupon": 0, "avia_framework_post": 0, "portfolio": 0, "feedback": 0, "jp_pay_order": 0, "jp_pay_product": 0 } } }The restriction still doesn’t work but on the first “action” I do on the website (when I move from the homepage to the shop page).
Thank you,
RiccardoHi @riccardomion,
That’s really odd. Do any of the pages have the “bypass” option set?
If you want to you can create an account for me and I’ll have a look, just use [email protected] and I’ll see if I can work it out.
Thanks
PhilHi Phil,
Thanks for your support. I added a new user.
Hi @riccardomion,
I think it may be the page builder you are using may trump the age gate when it comes to loading the template. I can have a look in more detail over the weekend, but for now I’ve switch age gate to the JavaScript version in the advanced settings and it looks like it’s working now 🙂
Thanks
PhilThanks a lot, Phil! Yeah, actually I’m having several issues with the theme, I was planning on finding someone to solve them since I’m not an expert at all. If you want to have a look since you surely know more than I do, I would appreciate it very much, but otherwise, don’t worry about it, I will try to find someone!
Thanks again!
The topic ‘It doesn’t work’ is closed to new replies.