Monday 12 January 2015

how to create magento static block

hello 

Create How to Create Magento static Block in magento.




static magento block


First you want to login main gento admin.

after click on menu cms=>static block

check first sceen short.

after click on Add New Block.


static magento block


check out below sceen short and see you to add static in magento admin.

give tilte name

Give Identifier name

give status enable.

How to call static Block in magento Phtml file

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

follow_us in Identifier of static block. give identifire name in setBlockId

in cms page


Short code inside another block or cms page :


{{block type="cms/block" block_id="your_block_id"}}







No comments:

Post a Comment

Thank You For Comment