Add a CMS Static Block to a page with php in Magento

you can use this code to display content of any cms page Just in place of ‘identifier’ give the name of the page your want to display.
<?php echo $this->getLayout()->
createBlock(‘cms/block’)->setBlockId(‘identifier’)->toHtml() ?>

Leave a Comment

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

*