I need to override vendor/magento/module-customer/view/frontend/templates/address/edit.phtml . to include some custom fields to address form in new customer registration page.

Active theme is luma. Magento version is 2.4

I have tried customized edit.phtml in app/design/frontend/Magento/luma/Magento_Customer/templates/address/ - didn't work

Then tried in app/design/frontend/Magento/blank/Magento_Customer/templates/address - didnt work .

In pub/static/frontend/Magento/luma/en_US/Magento_Customer/template , the address folder is not existing and there.

Any idea on why the attempted overriding is not getting executed?

Thanks and Best Regards


1 Answer 1


In order to override this template, you must set up a custom child theme.

  1. Create your custom child theme.

  2. Create the following file in your theme:

    < Vendor >/< theme >/Magento_Customer/templates/address/edit.phtml

  3. Copy/paste the code from:


    to your theme's new edit.phtml

  4. Make any needed modifications to your theme's edit.phtml file.

  5. Apply your theme

  • Thank you very much. I ll try that out. Commented Mar 24, 2022 at 0:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.