Tag Archives: Footer

Magento 2 Remove Footer Links

You can remove Footer Links by adding the below line to layout xml.

<?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>
 <referenceBlock name="footer_links" remove="true"/>
<referenceBlock name="cms_footer_links_container" remove="true" />
 </body>
</page>

Remove header and footer Magento 2

You can remove header and footer content from all the Magento pages by adding the following code in default layout 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>
<referenceContainer name="header.container" remove="true" />
 <referenceContainer name="footer" remove="true" /> 
 </body>
</page>

For example in case of the theme Luma, the file need to be edited is vendor\magento\theme-frontend-luma\Magento_Theme\layout\default.xml

Check out the extension to that removes the header and footer content.