mmp460

Resources for MMP 460: Multimedia Project Lab

slack

Syllabus
Contact

Multiple menus in Underscore

MENU ACTIVATION

THEME INTEGRATION

In order to use these menus in your theme we have to include them in our template files. Place a similar code in place of each menu in your theme template:

    <?php
    $menu_name = array(
    'theme_location' => 'your-menu-handle',
    'container' => 'nav',
    'container_class' => 'className',  /* Will specify a class to the container  */
    'container_id' => 'idName',           /* Will specify an id to the container  */
    'depth' => 1                                 /* Will specify how many levels the navigation should go  */
    );
    ?>

    <?php wp_nav_menu( $menu_name ); ?>