cancel
Showing results for 
Search instead for 
Did you mean: 

changing links in the footer like "orders and returns" in free magento 2 luma

SOLVED

changing links in the footer like "orders and returns" in free magento 2 luma

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?

1 REPLY

Re: changing links in the footer like "orders and returns" in free magento 2 luma

Hi @konstantin_frolkov,

 

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>
--
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution"