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.

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 .

8747 Total Views 1 Views Today