All things Shopify and commerce
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.
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.
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.
I have this same issue, how was it fixed?
Ho w was this done please as mine will not go away in the theme editor
Hi there,
When I use Firefox, the problem goes away. It simply isn't seeming to work in Chrome at all. Best of luck!
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
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 %}
Hello, I'm having the same problem at the moment - did you manage to find a solution?
Thanks
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.
Has anyone found a way to resolve this?
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 %}
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024