Menu Page CSS Dictator

Categories

Component ID

2158825

Component name

Menu Page CSS Dictator

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

891

Component created

Component changed

Component body

Set a CSS class to apply to the page's "body" element based on the current menu item.

For the initial release this module walks in reverse the current active menu trail for the page being viewed and applies the first found CSS class defined in the menu item's edit screen.

Install

  • Download and install this module as you would any other module.
  • Define a CSS class to apply to a page by editing or adding a menu item under Structure > Menus > [Target Menu]