To figure out whether you are on the home page or not, the following code will help:
1 2 3 4 |
$identifier = Mage::getSingleton('cms/page')->getIdentifier(); if($identifier == 'home') { //... } |
How to know if you are on the home page
You want or need help implementing this solution? Maybe you did not find what you were looking for? Contact me and I will assist you with whatever Magento problem troubles you!