/ Published in: Other
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php if(Mage::app()->getFrontController()->getRequest()->getRouteName() == 'cms' && Mage::getSingleton('cms/page')->getIdentifier() == 'home') : ?> <h1>This is the home page!</h2> <?php else : ?> <h2>This is NOT the home page! :(</h2> <?php endif; ?>