to know which menu is selected, you can do that in JavaScript
var selected_menu_id = $("#select-menu-to-edit option:selected").prop("value");
if ("56" === selected_menu_id) {
wpNavMenu.options.globalMaxDepth = 2;
}
Related Posts:
- Additional navigation bar in header
- how to configure this type of menu
- Split up wp_nav_menu with custom walker
- How to Add to Each Menu Link with link text to data-attr?
- Removing link ” from ” menu for some “links” without JS
- Remove unusable metaboxes in nav menu management screen
- Multi Level Bootstrap Navigation Menu in WordPress
- Determine if a navigation item has children
- Bootstrap dropdown nav pills not working with wp_nav_menu()
- How to move parent li to end of child ul
- Links open only on new tab or window
- Bar separated navigation by extending Walker_Page
- How to Create a Custom WordPress Navigation Menu with the Code?
- Custom Nav Walker sub-menu HTML construct
- Add class to menu ul with active child
- Add sidebars to navigation menu?
- Make compatible custom menu widget for Twitter Bootstrap
- How to display dynamic content in start_lvl function
- Add custom text to menu
- Menu styling for last menu item
- Disable automatig SVG tag from menu
- Menus like a CMS
- Remove li from wp_nav_menu
- Replace menu permalink/hyperlink with only menu name/slug
- wp_nav_menu add some element to container
- Use wp_nav_menu to display ALL pages
- Third level navigation class
- How to add a submenu toggle button inside all “li” elements that have a submenu?
- get_query_var(‘post_type’) not returning in a filter
- Find out if a page has no parent
- Prev / Next menu item
- show different admin menu to different user roles
- wp_nav_menu() with multiple Class
- add span class and i tag inside wp_nav_menu link anchor tag
- I am facing a problem with the navigation menu of my website
- Prepend to start of WordPress nav loop
- Grey out nav buttons unless is_user_logged_in()
- You do not have permission to create Navigation Menus – Twenty Twenty-Two theme
- How to approach this menu design?
- Trying to Create Menu in WordPress
- Change search results order for Admin -> Appearance -> Menus -> Pages -> View all
- Creating a navigation menu to see where you are on your website
- How can I add text to a single nav menu item?
- Alternative to wp_get_nav_menu_items?
- Using Zurb’s Foundation Tabs as WordPress Nav (Active Tab)
- Using my WordPress menu on another platform
- Links do not open from click, only in new tab [closed]
- How to remove dropdown from wp_nav_menu
- In the Admin Dashboard, can I choose which sections to display?
- Add a submenu to wp_nav_menu
- Walker menu not displaying at all
- remove menu items if user can’t read
- Adding a unique ID to each sub-menu
- How to add css to single navigation text? [closed]
- My navigation menu isn’t working. What happened? Please help!
- In admin edit-menu screen, newly added menu items always go to the bottom of the list
- How to automatically redirect to first item of second navigation level in a multi-level menu?
- Locking in navigation labels before changing title?
- How to Add support for sub-menu item description in wordpress?
- Blending Foundation’s Tabs with WordPress Nav Menu & Display Active Tab
- Editing the nav menu?
- Why is my navigation in my onepage not working?
- Navigation item – current date in url
- Hide a menu (navigation bar) on all posts
- Nav Menu: Theme Location not working
- How to remove empty line space in navigation menu?
- Is it possible to get_the_post_thumbnail (Featured Image) inside a sprintf function?
- Bootstrap Theme Migrated to WordPress
- What is inside in $item in start_el function in Walker_Nav_Menu class
- Bootstrap Nav Walker Sub Menu Image
- Creating navigation out of specific IDs and their children?
- Add active class to wp_nav_menu
- Disable Top Nav Bar on Mobile
- Header lists posts instead of showing primary nav menu
- How to separate sub-menu output and keep associated with parent
- Programmatically add a Navigation menu and menu items
- Site-wide tabs at WordPress website?
- Creating custom Menu for custom theme
- How to add class and span to
- Show Child of Parent Page including all other parents
- How to output the menue structured for tabbed navigation?
- Show only second level menu items? [duplicate]
- Add item ONLY to the primairy navigation
- Image menu on responsive WordPress
- wp_nav_menu: indicate by id page grandparents
- individual images as navigation design TwentyTen
- WordPress Navigation
- WordPress Navigation default output
- How to call either page name as the nav link or navigation title?
- How to get wordpress navigation to work
- How do I show a different secondary navigation menu for each section of my website?
- Add a navigation menu item using MySQL
- how to make a walker to this (in bootstrap, i try but not work)
- Display sub menus as separate lists
- Site navigation sits unstyled for a second on page reload [closed]
- Custom navigation / menu output (walker?)
- Navigation menu displays permalinks
- Rename Menu icon in Twenty seventeen theme
- Critical Error when editing menu
- Tried to hide navigation menu on one page ended up SCRAMBLING the navigation menu on another