/ Published in: PHP

Show html on homepage and different html on other pages
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php $app = JFactory::getApplication(); $menu = $app->getMenu(); ?> <? if ($menu->getActive() == $menu->getDefault()) { ?> this is the front page <?php } else { ?> do something else <?php } ?>
Comments
