Magento – How to override layout file, which is already override by other theme – layout\override\base\somel_ayout.xml

layoutmagento2overrides

How to override layout file, which is already override by other theme.

For example, we have existing theme.

app\design\frontend\<Vendor>\<themeone>\Module_Vendor\layout\override\base\somel_ayout.xml

How to override somel_ayout.xml file in my current theme.

Help would be appreciated.

Best Answer

Try to change your etc/module.xml file to define your priority file (module/theme):

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
    <module name="Vendor_Module" setup_version="1.0.0">
        <sequence>
            <module name="Vendor_Test" />
            <module name="Magento_Customer" />
        </sequence>
    </module>
</config>
Related Topic