I have developed a module vendor_module1 and I want to extend the layout of magento_customer module. Is there a way to do it in module? or only in theme? Is it a good practice to do so?


Sure, you can extend a module's layout by creating the same layout file in your custom module.

In case you want to extend, for example, "customer_account_create.xml" layout then in your extension you need to create file:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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