Magento 2 – How to Remove and Change Footer Links

footermagento2

I want to remove the default links of the luma layout and add new links. How can I do that?

Best Answer

"About us" link and "Customer Service" link: Static block with Identifier is "footer_links_block"

To remove other links, use xml file (default.xml) and add this code into < body > tag:

<referenceBlock name="name_of_link_block" remove="true"/>

Name of link block:

Privacy and Cookie Policy: privacy-policy-link

Search Terms: search-term-popular-link

Contact Us: contact-us-link

Advanced Search: catalog-search-advanced-link

Orders and Returns: sales-guest-form-link

To add new links to footer links, use this code:

<referenceBlock name="footer_links">
        <block class="Magento\Framework\View\Element\Html\Link\Current" name="your-link-name">
            <arguments>
                <argument name="label" xsi:type="string">Title</argument>
                <argument name="path" xsi:type="string">path-of-your-page</argument>
            </arguments>
        </block>
    </referenceBlock>
Related Topic