Showing posts with label Adding a Static Block to your phtml files in Magento. Show all posts
Showing posts with label Adding a Static Block to your phtml files in Magento. Show all posts

Wednesday, 11 December 2013

How to call static block in .phtml file in Magento


How to call  static block in .phtml file in Magento

Just write below code in any phtml file and give static block identifier.

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