Bhaveshpp

Professional Magento Developr - Healp eachother to grow

Magento2: How to call static block in phtml file?

27 May 2021 » magento2, phtml

Call Static block in phtml file


echo $this->getLayout()
    ->createBlock('Magento\Cms\Block\Block')
    ->setBlockId('your_block_identifier')
    ->toHtml();