Display CMS Static Block In Phtml File:
<?php
echo $block->getLayout()
->createBlock('Magento\Cms\Block\Block')
->setBlockId('block_identifier')
->toHtml();
?>
<?php
echo $block->getLayout()
->createBlock('Magento\Cms\Block\Block')
->setBlockId('block_identifier')
->toHtml();
?>
No comments:
Post a Comment