I am trying to add this code to the Layout Update XML field in Home page
<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>
But I found something strange,
Every time I add this code to Layout Update XML field and then save the page, when I check the Layout Update XML field again, I find it empty, it turns to empty as if no code was added.
what could be the problem of this??
You are placing this code in the wrong field. You just need to add this code to the layout.xml file.
Put this same code layout.xml in the directory of the block which you want to call.
Hope this will help you to solve your problem.
If not, feel free to contact us.
Click KUDOS and accept as a solution.
I've tried that solution, but I think it is for Mageno 1. The error it throws in M2.2.3 is: Please correct the XML data and try again. Element 'referenceBlock': This element is not expected. Expected is one of ( referenceContainer, container, update, move ). Line: 1 When you change <referenceBlock> to <reference NOX vidmate VLC Container> it throws this error