How do I call a static block inside phtml magento

A static block in phtml file of magento, sometimes we need to do this kind of functionallity.
For instance whenever you want to add one banner image on right side of callout block.
Create your static block in the admin area of Magento. CMS > Static Blocks Click on '+ Add New Block'.
The 'Identifier' is what you'll need to take note of for embedding the block.
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('banner_image_block_id')->toHtml() ?>
Pritesh Pritesh

Pritesh Pethani

Request a Quote!!

Share your concept and we will return to you within 24 hours. Let us work out the best software solution for you!

Let's Start
Whatspp