Check current page is home page or not

Using the code below to check current page is home page or not.
<?php if(
Mage::getSingleton('cms/page')->getIdentifier() == 'home'  &&
Mage::app()->getFrontController()->getRequest()->getRouteName() == 'cms' 
) : ?>

//insert your code here 

<?php endif; ?>

Revisions

No comments yet.

Leave a Reply