Primary Menu
Chaos menu is built using the WordPress menu logic. It has identical classes and markup. The classes are self-descriptive as you can see in following snippet:
The classes that can be applied to each li elements are listed in followin table:
Class | Description |
.current-menu | currently active menu |
.current-menu-parent | parent node of current active menu |
.menu-item-has-children | menu item has submenu |
.mega-menu | mega-menu wrapper |
Mega menu
Mega menu is a fullwidth wrapper that can contain pretty much any type of content as a menu. Inside it there is stil a ul
element with li
childs but this lists items can be used as bootstrap normal columns that can contain any HTML markup like an image or just a normal list.
Important: Mega menu as a fullwidth wrapper is only for large screens and desktops. In mobile devices the only thing that remains visible inside a mega menu is ul
list with class .nav-ul
. So if you have a mega menu that contains navigation links along side of other contents, make sure the navigation ul
has `.nav-ul' class.
Here is a sample markup for a mega menu item:
Last updated