Create CMS static block
Create static block in Magento admin area. Add new block in Admin -> CMS ->Static Blocks and create new. Note down the Identifier of that block going to create.
If want to call the static block in phtml file, refer the below code to add in that
$this->getLayout()->createBlock('cms/block')->setBlockId('[identifier]')->toHtml();
[identifier] denotes the name of the static block. You can add this code in which the block to appear.
No comments:
Post a Comment