Step 1: Contact us
Go to \app\code\Magento\catalog\view\frontend\Layout\default.xml
Step 2: Remove footer links
For 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>
For Search Terms
Go to app\code\Magento\Search\view\frontend\Layout\default.xml
Comment on 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>
For 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>
For 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>
Go to \app\code\Magento\catalog\view\frontend\Layout\default.xml
Step 2: Remove footer links
For 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>
For Search Terms
Go to app\code\Magento\Search\view\frontend\Layout\default.xml
Comment on 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>
For 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>
For 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>
No comments:
Post a Comment