I want to know how to remove Zip/postal code from customer registration form in Magento 2?

1 Answer 1


Copy file from vendor\magento\module-customer\view\frontend\templates\form\register.phtml and paste this path


and comment this code or and remove line 104 to 109

and go to stores->Configuration->general->general->country options -> Zip/Postal Code is Optional for
here is you can remove zip code and please check url to remove validation
Remove postal code required


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.