Question

Dears,

I have a xml file in the vendor directory:

vendor/the_vendor/the_module/view/frontend/layout/the_file.xml

I know that I should never make any change in this directory as it may be overrided by composer. I also know that I should create the the_file.xml in my theme.

my theme path is:

app/design/frontend/the_Vendor/My_Theme/

Could you please let me know where the the_file.xml should be created (the exact path) in order to override the vendor xml file ?

Was it helpful?

Solution

Try this way...

vendor/the_vendor/the_module/view/frontend/layout/the_file.xml

to

app/design/frontend/Vendor/Themename/the_module/layout/the_file.xml

Please don't forget to clear cache after change in xml files

OTHER TIPS

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top