Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

magento 2 add in static block

<?php    echo $this->getLayout()        ->createBlock(MagentoCmsBlockBlock::class)        ->setBlockId('my_cmsblock_identifier') //replace my_cmsblock_identifier with real CMS bock identifier        ->toHtml();?>
Source by magefan.com #
 
PREVIOUS NEXT
Tagged: #magento #add #static #block
ADD COMMENT
Topic
Name
2+8 =