You are viewing an old revision of this post, from February 25, 2014 @ 14:28:32. 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; ?>

Revisions

Revision Differences

There are no differences between the February 25, 2014 @ 14:28:32 revision and the current revision. (Maybe only post meta information was changed.)

No comments yet.

Leave a Reply