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();?>

Leave a Reply

Your email address will not be published. Required fields are marked *