Please... More hints to add sub-menus to BlogsMU

Hello:
I think I'm in a place where I need to add sub-menus to BlogsMU to conform with the design of growing pile of sites & subsites.
Here are the bytes I've found so far:
* Code goes in navigation.php (https://premium.wpmudev.org/forums/topic/few-questions-1#post-39011)
* There is a function named register_nav_menus() used by BuddyPress, which appears to do the trick for most blogs... wp-includes/nav-menus.php

I'm not seasoned in php - so any advice about how and where to call this function to enable menus would be awesome helpful in getting me started.

The string "menu" does not appear anywhere in navigation.php, but the last line calls: <?php do_action( 'bp_nav_items' ); ?>

I'll happily post my mods here to help answer the other several questions on the topic.

  • Mason
    • DEV MAN’s Sidekick

    Hiya!

    This theme is due for an update very shortly. I can't give an exact ETA, but these features are being added and will be available in a new version.

    If you need to get it going right now though, I can provide a little help, but it's not an easy 1, 2, 3 process. Having the php code to create the menus is one step, but styling the drop-downs to behave nicely requires a bunch of custom CSS as well. Are you wanting drop-downs specifically for the BuddyPress menu items or WordPress page items?

    Let me know and we'll see what we can get stared for ya.

    Thanks! :smiley:

  • JoseffB
    • The Crimson Coder

    From this link: http://bavotasan.com/tutorials/wordpress-3-checking-out-the-new-menu-system/

    First, you need to include the following in your functions.php file:
    add_theme_support( 'nav-menus' );
    register_nav_menu('main', 'Main Navigation Menu');

    Next comes the function to actually display these menus in your theme. i.e. in your header.php:
    <?php wp_nav_menu( array( 'theme_location' => 'main', 'sort_column' => 'menu_order', 'fallback_cb' => 'display_home' ) ); ?>

    More details in the article but this should get your menu up.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.