In this post I am going to explain how to to call CMS static block in phtml file. Use below code snippet to get CMS static block content in any template file. echo $this->getLayout() ->createBlock(‘Magento\Cms\Block\Block’) ->setBlockId(‘cms_static_block_identifier’) ->toHtml(); Thats it. Enjoy Magento 2!! Team HiddenTechiesWrite an article about ecommerce that help people to grow their ecommerce…


Recent Comments