Assigning CSS style on the body element in your template

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

Comments

Popular posts from this blog

Set limit wp_nav_menu

Conut document have children that are show in navigation