Calling a static block in phtml template file

First create a static block from admin >> CMS >> static blocks
and write this code in your phtml file :

getLayout()->createBlock('cms/block')->setBlockId('given_Static_block_name')->toHtml();
?>

Comments

One response to “Calling a static block in phtml template file”

Leave a Reply

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

*