• Hello,

    I’m changing some things in my wordpress and I would like to limit the level of the main menu submenus.
    So far I have done by adding a depth value in the function

    wp_nav_menu (array (‘menu_id’ => ‘main_menu’, ‘menu_class’ => ‘nav’, ‘theme_location’ => ‘primary-menu’, ‘depth’ => 3));

    But what I need now is to limit this depth but depending on each parent, ie, the menu can have up to 3 sub-levels deep in some pages “father” but sometimes I would like to limit to a single sublevel.

    Is this possible? I do not mind playing, php or css if someone is kind enough to give me the basic steps you should follow

    thank you very much

  • The topic ‘How I can limiting levels of submenus shown in the main menu?’ is closed to new replies.