How to call CMS block in Magento 2 using PHTML file?

How to call CMS block in Magento 2 using PHTML file?

echo $this->getLayout()

->createBlock('Magento\Cms\Block\Block')

->setBlockId('your_block_identifier')

->toHtml();

?>



Copyright © 2024 Tridhya Tech Limited, Inc. All rights reserved.