Magento How To Check Is Home Page In phtml File

Magento How To Check Is Home Page In phtml File

Magento how to check is home page in phtml file.

Today we will discuss how to check is home page  in phtml file.

First Need to open  template file .

<?php if(Mage::getSingleton(‘cms/page’)->getIdentifier() == ‘home’ &&
Mage::app()->getFrontController()->getRequest()->getRouteName() == ‘cms’) : ?>

// your home page content is here.

<?php endif; ?>

thanks

Leave a Reply

Your email address will not be published. Required fields are marked *