Default Magento 2 footer links Removal Tutorial

Default Magento 2 footer links

As you can notice at the bottom of your magento2 site there are some various links such as “Privacy and Cookie Policy”, “Search Terms”, “Contact Us”, “Orders and Returns”, “Advanced Search”, etc. They can easily be removed by using the Magento admin panel. We took some time to delve into the code in Magento 2 and found the following easy steps to remove such footer. Hopefully this Default Magento 2 footer links Tutorial will be helpful for you.

HOT!! The version 2.0 of Claue have been released

claue2_edited (1)

View Demo

Claue – Clean, Minimal Magento 2&1 Theme is an excellent template for a modern and clean eCommerce store with 40+ homepage layouts and tons of options for shop, blog, portfolio, store locator layouts and other useful pages. Claue version 2. 0  comes with a bunch of  exclusive features including:

  • Being based on Luma theme.
  • Meet all standards of Magento Theme
  • Significant performance improvement
  • Compatible with most third-party extensions.
  • Fully compatible with Magento 2.4.x

This second advanced version completely differentiates from its previous one. Thus, if you are using Claue version 1 and want to update to Claue version 2, you can only rebuild a new website no rather than updating from the old version. Now, let’s get back the main topic

Learn how to remove Default Magento 2 footer links

Contact Us

Go to Stores->Configuration->Click on General tab-> Click on Contacts Link
Then, select Enable Contact Us link to NO

Privacy and Cookie Policy

Go to \app\code\Magento\Cms\view\frontend\layout\default.xml
Comment block Line no- 13
<!–referenceBlock name=”footer_links”>
<block class=”Magento\Framework\View\Element\Html\Link\Current” name=”privacy-policy-link”>
<arguments>
<argument name=”label” xsi:type=”string”>Privacy and Cookie Policy</argument>
<argument name=”path” xsi:type=”string”>privacy-policy-cookie-restriction-mode</argument>
</arguments>
</block>
</referenceBlock–>

Search Terms

Go to app\code\Magento\Search\view\frontend\layout\default.xml
Comment block Line no- 13
<!–referenceBlock name=”footer_links”>
<block class=”Magento\Framework\View\Element\Html\Link\Current” ifconfig=”catalog/seo/search_terms” name=”search-term-popular-link”><arguments>
<argument name=”label” xsi:type=”string” translate=”true”>Search Terms</argument>
<argument name=”path” xsi:type=”string”>search/term/popular</argument></arguments>
</block>
</referenceBlock–>

Orders and Returns

Go to app\code\Magento\Sales\view\frontend\layout\default.xml
Comment block Line no- 16
<!–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–>

Advanced Search

Go to app\code\Magento\CatalogSearch\view\frontend\layout\default.xml
Comment block Line no- 13
<!–referenceBlock name=”footer_links”>
<block class=”Magento\Framework\View\Element\Html\Link\Current” name=”catalog-search-advanced-link”>
<arguments>
<argument name=”label” xsi:type=”string” translate=”true”>Advanced Search</argument>
<argument name=”path” xsi:type=”string”>catalogsearch/advanced</argument><argument name=”attributes” xsi:type=”array”>
<item name=”data-action” xsi:type=”string”>advanced-search</item></argument>
</arguments>
</block>
</referenceBlock–>
Default Magento 2 footer links Removal took me some time to work out first time around, so I hope it’s useful and time-saving to another Magento developer!
You also read more useful tutorials about Magento 2 such as : the big improvements in Magento 2.0 frontend engine or the migration tool for migration from Magento1 to Magento 2 Platform and much more Magento 2 tutorials at our blog. Hope that this article have given you clear guides for removing default Magento 2 footer links .

10817 Total Views 1 Views Today