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.