Add custom CSS class to a menu item

On this page:

Description

Custom CSS class allows you to format a specific menu item in a different way. You can add custom CSS class to a menu item and then you can write custom CSS based on this class.

Add custom CSS class

To add custom CSS class to a menu item:

  1. Edit menu at: Site administration → Mb2 Mega Menu → Manage menus.
  2. Edit menu item and click the Options button .
  3. Set custom class.

Menu items - custom CSS class

Predefined CSS classes

CSS class Description
mb2mm_highlight Add this CSS class to set menu item background color to accent color 1.
mb2mm_mhide Add this CSS class to hide menu item on mobile devices.