Magento 2 Certification Questions List | How to insert static block in template file(.phtml)?

How to insert static block in template file(.phtml)?

Answer:
  • echo $this->getLayout()->createBlock('cms/block')->setBlockId('static_block_id')->toHTML();
Prepear for Magento 2 certefication with our interactive quiz