How to create dynamic banner for Magento website home page

1.Download any of the dynamic banner script from net (as per your wish and you theme design).

2. Create static block in magento admin panel
admin -> CMS -> static block -> Home Main Banner (for example , identifier name is : home_main_banner)

3.Place your slider div and image path from created static block. Save

4.Call created CMS block from app\design\frontend\default\YOUR TEMPLATE\template\page\home.phtml file
how to call :
<?php echo $this->getLayout()->createBlock(‘cms/block’)->setBlockId(‘home_main_banner’)->

toHtml() ?>

5.Open page.xml and call banner related CSS/js files from page.xml file also

6. Else you use call Slider banner related js file in head.phtml also.

Leave a Reply