How to Call CMS Static Block in Phtml File in Magento 2

Method to call CMS static block in phtml file in Magento 2

<?php echo $this->getLayout()
->createBlock(‘Magento\Cms\Block\Block’)
->setBlockId(‘your_block_identifier’)
->toHtml();
?>

Display CMS Static Block In CMS Content:

Display CMS Static Block In XML:

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store