Monday, February 14, 2011

Assigning CSS style on the body element in your template

<?php 
$active = JFactory::getApplication()->getMenu()->getActive();
?>
 
<body class="<?php echo $active->alias; ?> ">