removing age verification code in unpublished theme

Topic summary

A user wants to remove age verification code from a duplicated (unpublished) Shopify theme but is concerned about accidentally affecting their live store.

Key clarification provided:

  • Changes to unpublished themes do not impact the live/published theme
  • The themes operate independently

Recommended approach:
Instead of deleting the age verification code immediately:

  1. Open the relevant liquid file in the code editor
  2. Select all text (Ctrl+A) and comment it out using Ctrl+/ keystroke
  3. Save and test on the storefront
  4. This allows safe testing without permanent deletion

Alternative solution mentioned:
A third-party app (Agefence) was suggested as a no-code option for age verification with customizable popups, offering a 5-day free trial.

The discussion remains open with the user yet to confirm their chosen solution.

Summarized with AI on November 6. AI used: claude-sonnet-4-5-20250929.

Hello,

I am trying to remove the age verification page here and I found the custom code under ‘Edit Code’.

Does removing the custom code on the unpublished theme affect my live(published) store? I duplicated the theme so I can test this, but worried it might affect the live published theme because of that message:

Please help! Thank you!

@allceg

  • It does not affect the live published theme. If you want to testing, you can try comment the code and save to test instead of delete the file liquid:

Step 1: In the file code, press “ctrl A” to blacken all text in the file
Step 2: press keystrokes “Ctrl + /” for comment and save then
Step 3: test in your store front

Hope this can help you.
Kind regards

Hi there,
You can easily add age verification popup without messing up with the theme using Agefence’s age verification popup.
It will come with a price of latte but it’ll save you tons. and it has unlimited design customizations.
Just try out with 5 day free trial - https://apps.shopify.com/agefence
Learn more at https://appiers.com/agefence