Skip to content

Instantly share code, notes, and snippets.

@veritstudio
Created June 13, 2019 19:24
Show Gist options
  • Select an option

  • Save veritstudio/de8dc2d2a13c8d008d705019cdf32b5f to your computer and use it in GitHub Desktop.

Select an option

Save veritstudio/de8dc2d2a13c8d008d705019cdf32b5f to your computer and use it in GitHub Desktop.
Call CMS static block in phtm in Magento 2
<?= $block->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('your_block_id')->toHtml() ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment