Guest User

Untitled

a guest
Oct 17th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. Joomla - Custom CSS dependant on active menu item & children
  2. Author: Max Lynam | June 2012 | max@OSguru.com.au
  3. /*************************************************************/
  4. Edit the file "index.php" in your default template directory.
  5. The alias of your active item will be inserted as a class on your body.
  6.  
  7. If the menu item alias is "home", you can then style everything on that page using the class body.home page.
  8.  
  9. example usage:
  10. /**** CSS File ****/
  11.  
  12. body rightcolumn
  13. {
  14. /* rule for every page */
  15. }
  16.  
  17. body.home rightcolumn
  18. {
  19. /* different rule for homepage */
Add Comment
Please, Sign In to add comment