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
Highlighted

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 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

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>

View solution in original post

3 REPLIES 3
Highlighted

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>

View solution in original post

Highlighted

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

I Just Hide the Particular <argument></arguments> Tags, Its work for me -Thanx,

Highlighted

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

How can i change footer

Privacy and cookie policy
Search terms
Orders and returns
Advanced Search
Contact us