GitHub

{{menuItemClasses}} helper

Helper for creating CSS classes in the menu.

Syntax:

{{menuItemClasses CLASSNAME_1 CLASSNAME_2 ... CLASSNAME_N}}

Examples:

{{menuItemClasses}}

Outputs standard menu item classes.

{{menuItemClasses "active"}}

Outputs standard menu item classes and the "active" class.

{{menuItemClasses "active" "active-parent" "has-submenu"}}

Outputs standard menu item classes and the "active", "active-parent" and "has-submenu" classes.

Subscribe

Get the latest Publii news, updates and more delivered directly to your email inbox

You can change your mind at any time by clicking the unsubscribe link in the footer of any email you receive from us, or by contacting us at contact@tidycustoms.net. By clicking below, you agree that we may process your information in accordance with our Privacy Policy.