cancel
Showing results for 
Search instead for 
Did you mean: 

Need help, using Magento 2.1 and trying to override default.xml layout of module_sales

Need help, using Magento 2.1 and trying to override default.xml layout of module_sales

Need help, using Magento 2.1 and trying to override default.xml layout of module_sales (remove sidebar additional). For this I created default.xml at following location:

 

app -> design -> frontend -> <theme_folder> -> Magento_Sales -> layout -> override -> base -> default.xm

 

The code of default.xml is:

 

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="head.components">
<block class="Magento\Framework\View\Element\Js\Components" name="sales_page_head_components" template="Magento_Sales::js/components.phtml"/>
</referenceBlock>
<referenceContainer name="sidebar.additional" remove="true"/>
<referenceBlock name="footer_links">
<block class="Magento\Sales\Block\Guest\Link" name="sales-guest-form-link">
<arguments>
<argument name="label" xsi:type="string">Orders and Returns</argument>
<argument name="path" xsi:type="string">sales/guest/form</argument>
</arguments>
</block>
</referenceBlock>
</body>
</page>

 

It is not working, please help.