Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Joomla - Custom CSS dependant on active menu item & children
- Author: Max Lynam | June 2012 | max@OSguru.com.au
- /*************************************************************/
- Edit the file "index.php" in your default template directory.
- The alias of your active item will be inserted as a class on your body.
- If the menu item alias is "home", you can then style everything on that page using the class body.home page.
- example usage:
- /**** CSS File ****/
- body rightcolumn
- {
- /* rule for every page */
- }
- body.home rightcolumn
- {
- /* different rule for homepage */
Add Comment
Please, Sign In to add comment