Magento How To Check Is Home Page In phtml File

Magento How To Check Is Home Page In phtml File

Share This

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

Share This

Leave a Reply

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