There is a block which I would like to remove it, How can I do from layout file for Magento 2
To remove the block via layout for Magento 2
- Locate the layout file from your theme
- Inserting the following codes based on your block name.
Here is the example<?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="block_name" remove="true"/> </body> </page>