You can find the WP_Nav_Menu_Widget class in wp-includes/default-widgets.php:1059
- Simply copy the class (with new name – Example: Foo_Nav_Widget) to your functions.php file.
- Edit the form method and replicate the select option (with new id/name) and any variables associated.
- Edit the widget method, replicate any associated variables and call your second nav menu underneath the current nav menu.
- Register the new widget using register_widget(‘Foo_Nav_Widget’);
Related Posts:
- Custom Menus, Widgets & Conditional Statements
- menu in different page in different style
- Limit number of Widgets in Sidebars
- How to load Widget javascript + css files only if used?
- Adding iframe Content to Sidebar Widget
- How to use wp_dequeue_style() for style enqueued in WP_Widget class
- Storing custom dashboard widget options in wordpress
- $post>ID displays wrong post ID
- Video Embed in Sidebar Widget with Links to Others in Category
- Shortcode from a widget is wrapped in unwanted element
- How can I whitelist only specific shortcodes for processing in text widgets?
- Bookshelf plugin and/or widget [closed]
- How to update widget from widget() function?
- Create a Widget Area in the Navigation Bar for the Genesis Theme Framework?
- Manual display of widget
- Add a banner to the Dashboard
- Customized widget area – how to override or filter class xoxo?
- How to access widget data from outside widget?
- How to add a description to Widgets?
- WordPress menu deletes when trying to add a hook
- add_page_menu to make shortcut to widgets
- Insert custom content before widget title/after widget opening tag
- How do I stop a widget from displaying on mobile site?
- cannot drag and drop widgets since wordpress 3.2.1
- Show widget when not using SSL
- Color Picker Showing Twice When Widget Added to Sidebar
- How can I use AJAX to save/update a widget form?
- Display assigned terms with link
- Hide all Dashboard Widgets (not remove)
- Widget modifications in a child theme
- How to get “Widget Logic” plugin’s input value in a custom widget code (to display on the Widget admin page)
- Extending WP_Widget throws error when Monster Widget used
- Making footer widgets responsive
- Custom html widget with a Joomla-style assigment
- Form link throwing website to main language
- Conditional Tags Based on Previously Viewed Posts
- Make page jumps in widget
- Query in query for Widget
- How to display first post thumbnail as a background image of a widget?
- Create widget in dashboard displaying a custom user field?
- Custom widget with WYSIWYG
- Limit number of widgets in widget area
- How to create pagination for homepage with widgetized area?
- Hooking action once but called twice
- How to update the widget form when the image is selected?
- How can I add an author-box below a post?
- How to overload the update() of existings widgets?
- Override WordPress Widget CSS Classes?
- Help me out with this Undefined index ?
- displaying tags in a widget
- Dynamic Sidebar and XHTML Validity?
- How to use get_results() in widget front end?
- How to best include widget area just on homepage?
- Remove “Content” and “Discussion” from Right Now Dashboard Widget
- wordpress widgets screen disappeared
- Proper approach to moving complete site from one domain to another AND preserve widgets
- Different widgets in sidebar on sub-children pages?
- Why custom widget won’t appear in Block editor (Gutenberg)?
- Can the qTranslateX-Plugin translate non-article text? [closed]
- Custom widget is not appearing in the admin area
- A/B test options at the widget level [closed]
- Static image for embedded YouTube video instead of blank player?
- event organiser not loading in main content area
- Any available action to add content before and after sidebar?
- Creating a widget that displays the content of a page
- WP 3.3 RC1 new switch_theme() method foobars sidebars
- How to Catch Last Widget box From Same Widget Area?
- WordPress widget value not save?
- Countdown Widget
- Display Most Recent Post Widget Title On Page
- How do I get my custom widget to show on live site?
- How can I add a widget area to the top of the Dashboard?
- Accessing WooCommerce product categories before initialising widget areas
- Create a new recent post widget
- How do I add footer widgets to the StudioPress Monochrome Pro theme?
- Fatal Error (Call to a member function… ) on production site, but not development site
- wp_enqueue_media(); in multiple widgets
- Add Control in Widgets Sub-Panel in Customizer
- How to get sidebar widgets in leftsidebar template
- How to get number of posts in same category as current post?
- conditional widget title
- Add Social Media icon widget to customizer
- Create a setting at backend,to print only selected categries at front-end
- three sidebars showing without call
- Widget stuck at particular point when dragging to bottom
- How to add/save/retrieve additional fields to all available widgets?
- Help with custom widget
- How to Make widget area on place of comment
- Registered widget is showing up collapsed in the dashboard
- Transform php shortcode into a widget [duplicate]
- call coupon press advanced search widget anywhere in theme?
- twenty twelve theme widgets not working
- Hide widget on page
- Change the datasource of widget in a WordPress theme
- Random disappearance of footer widgets [closed]
- How to add an image as a bullet point in a specific WordPress widget? [closed]
- Classic widgets with 5.9+?
- How to inject a virtual widget (i.e. without adding it to the database) to the sidebar
- SVG Icon Code Support in WordPress Custom Html Widget? Not Working
- Remove nofollow attribute from social widget links