Just go to your magento admin panel and then CMS -> Static Blocks
Now click on Add New Block button below and there will be a New Block form with some required fields. Now fill up all the required fields and save. Congrats! you have created your new static block . You have an identifier for your static block that you should remember for the next step. Now you can call your static block using the code below
<?php
echo $this->getLayout()->createBlock(‘cms/block’)->
setBlockId(‘yourIdentifierNameHere’)->toHtml()
?>
at anywhere in your template. You must replace setBlockId(‘yourIdentifierNameHere‘) “YourIdentifierNameHere” with your created Static Block’s identifier name.
[It may help you
]
Tags: how to create magento static page, Magento, magento block customization, magento static block, magento template, magento theme, magento theme customization, magento tutorial, template, theme
April 13, 2009 at 10:29 am
i’m not sure how to add the echo code?index.php?
April 15, 2009 at 3:32 am
@justin, I don’t understand what do u mean by adding echo code?index.php? could u please explain it actually what is ur expectation?