You are viewing an old revision of this post, from February 25, 2014 @ 14:29:35 [Autosave]. See below for differences between this version and the current revision.

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; ?>


Revision Differences

There are no differences between the February 25, 2014 @ 14:29:35 [Autosave] revision and the current revision. (Maybe only post meta information was changed.)

No comments yet.

Leave a Reply