• Hello,

    with the Function Reference/wp nav menu I can have different menu’s on different places. But now I want to do something litte bit different. I Want to show the depth 1 in the header and the depth 2 in the sidebar. How should I set this up? Only change the depth in the function? Or is it not possible this way?

Viewing 5 replies - 1 through 5 (of 5 total)
  • You can set the depth independently in each of the calls to wp_nav_menu().
    http://codex.ww.wp.xz.cn/Function_Reference/wp_nav_menu

    Thread Starter baszer

    (@baszer)

    yes, but I want it so, that when you click on the item in the sidebar, that the menu is changed in the sidebar to the right depth

    Thread Starter baszer

    (@baszer)

    I think i need: child_of , but I want to show the childs of the selected item in the header, so its variable? How can you set that?

    You’re trying to create a folding menu? If so, you could try googling on “jQuery accordion script”.

    Thread Starter baszer

    (@baszer)

    uhm, folding?

    I try to create a menu with two depths.

    Depth one is the main menu in the header.
    Depth two is in the sidebar.

    Now I want to show the childs of Depth one in de sidebar when clicked on items in the header. Do you understand it? 😉

    like this plugin, but I dont want to use this plugin

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Custom menu, different depth, different place’ is closed to new replies.