Monday, 8 June 2015

How to Add / Create Static Block in Magento

Learn How to Add Static Block in Magento or How to Create Static Block in Magento.

Add / Create Static Block in Magento

Step 1: Create Static Block Login Your Dashboard
Go to CMS / Static Blocks
Add / Create Static Block in Magento

Step 2: Click on Add New Block

Add / Create Static Block in Magento

Step 3: Calling on Front End

Static Blocks are Very Important Part in MAGENTO CMS for Calling Different Blocks to Change Your Look and Feel of Magento Website.


Use This Code in Your Template File (.phtml files)

echo $this->getLayout()->createBlock('cms/block')->setBlockId('identifire')->toHtml();

Explanation:

1. Suppose We Want to Add a Banner in Our Magento Store for Special Offers on Sidebar, So We Can Use Static Block.

2. If We Want to Add Social Media in Magento Store in Footer then We Can Use Static Block.

3. If We Want to Add Links in My Site then We Can Use Static Blocks


For More Magento Updates Find on anilmagentotrainer.blogspot.com

No comments:

Post a Comment