This section describes how to add extra functionalities to a Menu and how to activate the simple Megamenu, the Secondary, and the Call To Action Menu.
Simple Megamenu
The simple Megamenu (the only method available for creating Megamenus before Uncode 2.10) is a Menu featuring a large dropdown area where submenus are organized in convenient columns. The simple Megamenu offers quick setup with minimal customization for traditional text-only navigation. It features a column-based structure where second-level Menu items become column titles and third-level items become Menu links, with text-only Menu items and basic responsive behavior. Here is an example from our demo site.
To create a simple Megamenu:
- Navigate to Appearance → Menu;
- Configure your Menu structure where second-level items serve as column titles and third-level items function as Menu links;
- Activate the Megamenu option in the first level Menu item, screenshot .
Megamenu titles and parent menu items cannot be active links
Megamenu titles and parent menu items cannot be active links, these are textual containers for the submenu items. You cannot have active links since, in mobile views, they are clicked to open the submenu, and the active link would fail if combined.
Badges on Menu
From Uncode 2.4.0, it's also possible to add badges to your Menus. To activate the option, please insert this code in your Child Theme functions.php file. After that, you'll find in every Menu item the fields Badge (where to insert the text of your badge) and Badge Color (where to insert the hexadecimal value of the color of the tup badge). Please note that since this adds two new fields for each Menu item in the WordPress Menu Editor, it is suggested to have another Max Vars value in the presence of Menus with many Menu items.
/**********************
*
* Activate badges in menu
* @return bool
*
**********************/
add_filter( 'uncode_activate_menu_badges', '__return_true' );
Comments
0 comments
Article is closed for comments.