cancel
Showing results for 
Search instead for 
Did you mean: 

Add to or Remove Footer Links

Add to or Remove Footer Links

How do you add to or remove the footer links?

6 REPLIES 6

Re: Add to or Remove Footer Links

How to add a link to the Magento 2 frontend footer? https://mage2.pro/t/820

Re: Add to or Remove Footer Links

Thanks but there is a lot there that is still over my head. I need a good book LOL. Would you mind sharing how you would go about adding a link to a CMS page?

Re: Add to or Remove Footer Links

<referenceBlock name="footer_links">
<block class="Magento\Framework\View\Element\Html\Link\Current" name="about-us">
<arguments>
<argument name="label" xsi:type="string">About Us</argument>
<argument name="path" xsi:type="string">about-us</argument>
</arguments>
</block>
</referenceBlock>

 

This works.

Re: Add to or Remove Footer Links

Thank you guy

Re: Add to or Remove Footer Links

go to the layout default.xml and comment this code to remove the footer link


<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>



Re: Add to or Remove Footer Links

Sorry to bring this back up, but I got a question related to this thread.

 

Is there an easy way to add a title above the footer links? Like there was in Magento 1?

 

I've tried setting an argument "title" but that didn't work obviously. Is there any way we can know all the attributes there are for a certain block? Is there no .phtml file for the footer links block?

Magento 2 leaves me behind with a lot of questions...

 

Are there any communities or chat groups besides this one and stackoverflow where developers can discuss these kind of things?

 

Thanks in advance!