I want to remove the footer container add new customize footer! I already remove the footer links but the (Enter your email address | Subscribe) and the white background is still there!
I want to remove them all and add new custom footer!
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityI want to remove the footer container add new customize footer! I already remove the footer links but the (Enter your email address | Subscribe) and the white background is still there!
I want to remove them all and add new custom footer!
You can remove using that code:
<referenceContainer name="footer-container" remove="true"/>
Or you can customize your footer from this file:
app/design/frontend/[Package]/[theme]/Magento_Theme/templates/html/footer.phtml
<div class="footer-container">
<div class="footer">
//Add your custom footer HTML and CSS
</div>
</div>
Try this code :
<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.container" remove="true" />
</body>
</page>
Use below code in layout XML (default.xml of your theme).
<?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="footer" remove="true" />
</body>
</page>
app/design/frontend/[Package]/[theme]/Magento_Theme/layout/default.xml
<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.container" remove="true" />
</body>
</page>
OR
Without XML:-
.page-footer {
display: none;
}