I want to add a static block to left column of a 2 column layout via layout Update XML in Magento 2.1.1
Asked
Active
Viewed 1,215 times
1 Answers
1
In your custom theme Magento_Theme/layout/default.xml file add:
<referenceContainer name="sidebar.main">
<block class="Magento\Cms\Block\Block" name="any.name" after="-">
<arguments>
<argument name="block_id" xsi:type="string">your-cms-block-id</argument>
</arguments>
</block>
</referenceContainer>
This will add a static block to all pages with left column. If you need to apply to a specific CMS page then you can add above code to CMS Page >EDIT>DESIGN>Layout Update XML
Devtype
- 3,008
- 3
- 24
- 36
i thank you Devtype for its assistance to conclude this thread. Adding static block via layout update xml of a CMS page is on piece of cake.