Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: All the editing page is blocked by the age verification page

All the editing page is blocked by the age verification page

JaneQ
Tourist
3 0 1

Every time I am trying to edit my store, the age verification page is always there and I can't see anything else except this age verification block like below. 

JaneQ_0-1691087482933.png

I believe I coded this age verification function, but I can't remember how I did it or how to make sure I can make it goes away when I am editing my store. 

Replies 10 (10)

azamgill
Shopify Partner
325 47 82

 Look for the code in your theme's layout files (theme.liquid or layout/theme.liquid). The code will likely be near the top of the file and may contain words like "age verification", "age gate", "age check", etc. Once you've found the code, you can comment it. 

Azam Gill
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- Encourage me ❤️

Come and visit us at Wbify
CIDER_TAP
Visitor
1 0 1

I have this same issue, how was it fixed?

Ljvapes
Explorer
107 2 5

Ho w was this done please as mine will not go away in the theme editor 

karenshaheen
Tourist
3 0 0

Hi there, 

When I use Firefox, the problem goes away. It simply isn't seeming to work in Chrome at all. Best of luck! 

fuegoyhumo
Tourist
9 0 1

Hi Azam,

 

I have the same problem where I can no longer edit my site due to the age verification pop up persisting in the editor. This was never a problem in the past, I could always click through. I cannot find any code in the theme.liquid file that references this age gate/check/verification. I am using Dawn 7.0 which is an old version, however, how is the age gate usually set up? I don't remember it being hard to do.

 

Thank you,

Karen

fuegoyhumo
Tourist
9 0 1

Hi Azam,

 

Update to my previous message:

Commenting out the age-gate section worked as you suggested, however, I would prefer to use the below code (which does NOT work) so that I can edit my theme while not affecting my website visitors.

Why doesn't this work to prevent loading of the age-gate on https://admin.shopify.com/store/fuegoyhumo/themes/


{% if page.url contains 'https://fuegoyhumo.com' %}
{% render 'age-gate' %}
{% endif %}

BalanceBrewing
Visitor
1 0 1

Hello, I'm having the same problem at the moment - did you manage to find a solution?

 

Thanks

aocselections
Tourist
4 0 3

I'm having the same problem too. My age verification code has worked for years, and it still works on the live page. On the editor though, it doesn't disappear. 

karenshaheen
Tourist
3 0 0

Has anyone found a way to resolve this? 

Jono_Ross
Shopify Partner
2 0 0

Late to the party - but for others..

--- when you are editing your sites theme the url becomes - https://admin.shopify.com/store/your-shopify-stores-domain-com, sooo....

{% if page.url contains 'https://your-shopify-stores-domain.com' %}
{% render 'age-check' %}
{% endif %}