Support » Themes and Templates » Dynamic horizontal submenus with nav_menu

  • I’d like to implement dynamic submenus on a site I’m working on, using the new nav_menu functions to allow easy changes from the dashboard.

    The effect I’m referring to presents two navigation rows, the topmost with upper level links and the lower displaying child links when their parent is hovered over or clicked. A static (no hover) version of this effect can be seen on the current buddypress.org site and the code for a dynamic version (the one I’m planning to use) is described at http://www.triah.com/2010/01/09/color-menu-with-dynamic-submenu-using-css/

    The problem comes in managing and showing child-links. The built-in wp navigation options for submenus involve drop-downs for nested
    <ul> tags.

    The approach I am describing wraps parents in one <div> and all children in another <div> linking them together by class.

    Can you imagine a way to use the new nav_menu function set to accommodate this kind of layout?

  • The topic ‘Dynamic horizontal submenus with nav_menu’ is closed to new replies.