jcadima
2/16/2017 - 10:29 PM

Magento display static blocks on phtml files

Magento display static blocks on phtml files


1) create a static block and get the name:  contact-info

2) put this code in the phtml where it will be shown

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