The Menu attribute adds a WordPress menu to your widget. In the Elementor editor, you choose one of the menus you created in Appearance > Menus, and the widget outputs it as a list of links. You can use it to build your own navigation, footer or side menus with your own HTML and CSS.
Menu is a Pro attribute, so you need Unlimited Elements Pro to use it.
Step 1
Open the widget in the Widget Creator. In your WordPress dashboard, go to Unlimited Elements > Widgets and click Add Widget to create a new widget. To change one of your own widgets, hover over it and click the Edit Widget (pencil) icon.
Step 2
Open the Attributes tab. On the left, select the section where the attribute should appear: sections under Content are shown in the Content tab of the Elementor panel, and sections under Style in the Style tab. Menu usually goes in a section under Content. Then click Add Attribute.
Step 3
Click Attribute Type and choose Menu in the Advanced column.
Step 4
Fill in the attribute settings:
- Title: the label of the menu controls in the Elementor panel.
- Name: the name you use in the widget code. It is filled in from the title, for example
menu. - Enable Condition: shows the controls only when another attribute has a chosen value. Select that attribute in Show When.
- Menu Class: the class of the menu’s
<ul>element. The default isuc-list-menu. Use it to style the menu in the CSS tab. - Html Before Link and Html After Link: HTML that is added before and after each link, for example an icon or a separator.
These settings are passed to the WordPress wp_nav_menu function. The WP Menu Reference link in the dialog explains them in more detail.
Step 5
Open the HTML tab and add {{menu|raw}} where the menu should appear. It outputs the whole menu as a <ul> list with the class from Step 4, including the submenus. Use |raw so the HTML of the menu is not escaped. If you need the ID of the chosen menu, use {{menu_id}}.
Step 6
Click Update to save the widget. In the Elementor editor, the section you selected in Step 2 shows two controls: Select Menu, where you choose one of your WordPress menus, and Max Depth, where you choose how many levels of submenus to show (All Depths, 1, 2 or 3). The screenshot shows these controls in the List Menu widget.