X
    Categories: Knowledgebase

How to call static block any page in Magento 2

– If you want to call static block in cms page:


{{block class="MagentoCmsBlockBlock" block_id="block_identifier"}}

– If you want to call in phtml file :


getLayout()->createBlock('MagentoCmsBlockBlock')->setBlockId('block_identifier')->toHtml();?>

– Your xml file code should be :


	block_id
Leo: