0

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?

1 Answer 1

1

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:

/app/code/Vendor/Module1/view/frontend/layout/customer_account_create.xml

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.