This is a question we have seen plenty of times. Thankfully, there is a relatively simple process and solution to this issue. This article will show you exactly how to remove footer links in Magento 2 like those seen in the popular Ultimo theme.

Remove footer links from your theme

This easiest way to do this is to remove the footer link blocks from your theme. Please locate the following file and if it does not exist, go ahead and create it.

app/design/frontend/<your_vendor_name>/<your_theme_name>/Magento_Theme/layout/default.xml

Next, let's say you want to remove the "Search Terms" link from the footer. Simply add the following to your default.xml file:

<?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>
        <!-- Removed Footer Links -->
        <referenceBlock name="search-term-popular-link" remove="true" />
    </body>
</page>

Finally, you can simply flush the layout cache if your store is in default or development mode to confirm that the link has been removed. If you are in production mode, please run the following commands to see the new changes only after placing your store in Maintenance mode first.

rm -rf var/view_preprocessed/* pub/static/* generated/*
php bin/magento cache:clean
php bin/magento setup:static-content:deploy
php bin/magento setup:di:compile

More footer link removal examples

If you would like to remove the "Advanced Search", "Orders and Returns", "Contact Us" or "Privacy Policy" links you can edit your default.xml file as seen below:

<?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>
        <!-- Removed Footer Links -->
        <referenceBlock name="catalog-search-advanced-link" remove="true" />
        <referenceBlock name="contact-us-link" remove="true" />
        <referenceBlock name="privacy-policy-link" remove="true" />
        <referenceBlock name="sales-guest-form-link" remove="true" />
        <referenceBlock name="search-term-popular-link" remove="true" />
    </body>
</page>

 

In Conclusion

As you can see from the above examples, it is fairly simple to remove footer links from your Magento 2 theme by simply updating your theme's layout default.xml file.

If this article has helped you, please let us know below. We love to hear from all our readers! If you would like kiro.commerce to build a Magento 2 extension that will allow you to enable or disable these links from the admin dashboard, please let us know below.