How to place static block on your Magento Ecommerce site

In Magento, most of the stuffs can be done easily by just doing it as Static Blocks and calling them onto the frontend then. Just goto CMS  > STATIC BLOCKS. Create a new Static Block and enter your title, unique identifier ( for example,  my-right-ad) , set it to enabled state and then just enter your content in there and save it. Then wherever you want to add that static block, all you have to do is, open that html file. If you would like to place on left sidebar, then open this, /app/design/frontend/your_theme/your_theme/template/callouts/left_col.phtml If right, then open this, /app/design/frontend/your_theme/your_theme/template/callouts/right_col.phtml  and so on. Then wherever you want the static block to appear in that area, just place this code <?php echo $this->getLayout()->createBlock(’cms/block’)->setBlockId(’my-right-ad’)->toHtml() ?>

Site Search

Contact Us

 
 
 
Parent Technology Inc.
1535 Rosalind Rd Se
East Grand Rapids, MI 49506, USA
 
 

This email address is being protected from spambots. You need JavaScript enabled to view it.