If you want to call static block

In CMS Content:

{{block class="Magento\\Cms\\Block\\Block" block_id="block_identifier"}}

In Phtml File:

<?php echo block->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('block_identifier')->toHtml();?>

In XML File:

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

 

5.00 / 5.0
Article rating (9 Reviews)
Do you find this article useful? Please, let us know your opinion and rate the post!
Not badGoodVery GoodGreatAwesome