Suppose that I want to edit the file
vendor/magento/module-theme/view/frontend/layout/default.xml
Do I edit the file directly?
It seems not a best practice to me.
Or is there anyway I can extend the file to override the content.
layoutmagento2overriding
Suppose that I want to edit the file
vendor/magento/module-theme/view/frontend/layout/default.xml
Do I edit the file directly?
It seems not a best practice to me.
Or is there anyway I can extend the file to override the content.
Best Answer
You can use the following to override the layout file. For Example,
vendor/magento/module-theme/view/frontend/layout/default.xml
So you just need to override a file under your theme folder.