Tag Archives: magento 2

How to call static block in left sidebar in a page in Magento 2

Do you want to call static block into page or in a phtml page In Magento 2 Follow the instructions bellow  For CMS Pages Use bellow Code {{block class=”Magento\\Cms\\Block\\Block” block_id=”block_identifier”}} If you want to call block into phtml file use this code  Replace block_identifier with your orginal block identifier  <?php echo $block->getLayout()->createBlock(‘Magento\Cms\Block\Block’)->setBlockId(‘block_identifier’)->toHtml();?>