Grep win does not find the words of the links in the footer of the free luma theme of the magento 2 store like for example "Privacy and Cookie Policy", "Search Terms", "Orders and Returns", "Advanced Search" and "Contact us".
Does anyone know where the directory of those files are with the codes to change or delete them?
Solved! Go to Solution.
Those links are defined by layout by the Sales module.
You'll find the definition here:
/vendor/magento/module-sales/view/frontend/layout/default.xml
Of cours,e you should override the block, no that file.
Here's the content of the layout:
<?xml version="1.0"?> <!-- /** * Copyright © 2013-2017 Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ --> <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"> <block class="Magento\Sales\Block\Reorder\Sidebar" name="sale.reorder.sidebar" as="reorder" template="reorder/sidebar.phtml"/> </referenceContainer> <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>
Those links are defined by layout by the Sales module.
You'll find the definition here:
/vendor/magento/module-sales/view/frontend/layout/default.xml
Of cours,e you should override the block, no that file.
Here's the content of the layout:
<?xml version="1.0"?> <!-- /** * Copyright © 2013-2017 Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ --> <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"> <block class="Magento\Sales\Block\Reorder\Sidebar" name="sale.reorder.sidebar" as="reorder" template="reorder/sidebar.phtml"/> </referenceContainer> <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>
I Just Hide the Particular <argument></arguments> Tags, Its work for me -Thanx,
How can i change footer
Privacy and cookie policy
Search terms
Orders and returns
Advanced Search
Contact us