Making WordPress.org

Changeset 6354


Ignore:
Timestamp:
01/11/2018 10:44:47 PM (7 years ago)
Author:
obenland
Message:

Breathe: Limit Menu to top level items.

Props xkon.
Fixes #3105.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/header.php

    r4941 r6354  
    1616        <div class="screen-reader-text skip-link"><a href="#content" title="<?php _e( 'Skip to content', 'p2-breathe' ); ?>"><?php _e( 'Skip to content', 'p2-breathe' ); ?></a></div>
    1717
    18         <?php wp_nav_menu( array( 'theme_location' => 'primary', 'fallback_cb' => false ) ); ?>
     18        <?php wp_nav_menu( array( 'theme_location' => 'primary', 'fallback_cb' => false, 'depth' => 1 ) ); ?>
    1919    </nav><!-- .navigation-main -->
    2020</header><!-- .site-header -->
Note: See TracChangeset for help on using the changeset viewer.