cancel
Showing results for 
Search instead for 
Did you mean: 

Layout xml in third party theme

Layout xml in third party theme

Hi,

I am a beginner in Magento 2.

I installed a third party theme, in the home page, I founded this code on Layout Update XML field

<referenceContainer name="slide.showcase">
            <block class="Magento\Cms\Block\Block" name="home-slide15">
                <arguments>
                    <argument name="block_id" xsi:type="string">home-slide15</argument>
                </arguments>
            </block>
</referenceContainer>

I don't want this block to be displayed  in the home page, so I tried to change the Block identifier "home-slide15" to my new block. and then I saved the home page. But I noticed that the code above remains as it is without any changes and the block identifier never changed. why!

 

Actually I am not familiar with Magento 2, I wanted to add some new block to the home page. 

please help.

2 REPLIES 2

Re: Layout xml in third party theme

If you don't want this block then you can use 

<referenceBlock name="block_name" remove="true"/>

for 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>

Re: Layout xml in third party theme

Where can I add this line , in which file?