Answers for "magento 2 add in static block"

0

magento 2 add in static block

<?php    echo $this->getLayout()        ->createBlock(\Magento\Cms\Block\Block::class)        ->setBlockId('my_cmsblock_identifier') //replace my_cmsblock_identifier with real CMS bock identifier        ->toHtml();?>
Posted by: Guest on June-04-2021

Code answers related to "magento 2 add in static block"

Browse Popular Code Answers by Language