
Hi everyone,
In more recent versions of Magento2, the remove method is now:
<referenceBlock name=”block_name” remove=”true”/>
Example: Remove newletter in block on page and footer links block on page
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
<?xml version="1.0"?> <page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../lib/internal/Magento/Framework/View/Layout/etc/page_configuration.xsd"> <body> <referenceBlock name="form.subscribe" remove="true" /> <referenceBlock name="footer_links" remove="true" /> </body> </page> |
The steps I mention above is the shortest process for you to Remove Block in Layout in Magento 2.
Thank you for reading this post and see you in other posts from Magestore!