In Phtml File:
1 |
<?php echo $block->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('block_identifier')->toHtml();?> |
in CMS Content:
1 |
{{block class="Magento\\Cms\\Block\\Block" block_id="block_identifier"}} |
In Xml File:
1 2 3 4 5 6 7 8 9 10 11 |
<referenceContainer name="content"> <block class="Magento\Cms\Block\Block" name="block_identifier"> <arguments> <argument name="block_id" xsi:type="string">block_identifier</argument> </arguments> </block> </referenceContainer> |