We can insert the static blocks inside an phtml file by using the identifier of the static block we created in the admin panel of magento

Here is the code to do so,

<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('identifier')->toHtml();?>

In this case identifier must be replaced by the one which you created on the admin

Leave a Reply

Your email address will not be published. Required fields are marked *