<em>@braca86 325650 wrote:</em><blockquote>I got this code:
<?php
$active = JFactory::getApplication()->getMenu()->getActive();
?>
<body class=”<?php echo $active->alias; ?> “>
I just cant find head file to implement it in order to work… Can someone help???</blockquote>
You want to be able to have a different style for each page?
You can create a theme for each style and them assign them to the menu items on the JA T3 configuration page (on the left).
If you can’t bother to create a theme for each, you can use just one theme and then set a different class for each menu item (done in the menu items configurations under Page Display Options > Page Class). This will append whatever you place there to the body class in the body tag.
Example:
<body class=”bodyaboutus”>
This way you can use .bodyaboutus as the selector class for that page.
/* About Us Page Style */
.bodyaboutus {background-color:#222222;}
.bodyaboutus a {color:#ff0000;}
.bodyaboutus a:hover {color:#ff00ff;}
Best regards,
H. Winchester Lyon