Magento – How to remove ‘Subscribe’ field from Luma footer

footermagento2

I've gotten rid of the links but 'subscribe' field is still there. How is this referenced? Meaning I want it gone, not just hidden. Seems like this should be easy but can't figure it out – Thanks.

Best Answer

This block is defined in the Magento Newsletter module. So you can remove the block entirely via xml layout file. Create this file in your own theme or add to it.

app/design/frontend/YourCompany/your_theme/Magento_Theme/layout/default.xml

<?xml version="1.0"?>
<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="form.subscribe" remove="true" />
    </body>
</page>

This will remove the footer subscribe form from every page of your site.