reducing the top bar depth to 2 so that that 3rd level sub menus don't show
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 26 Jan 2017 15:07:06 +0000 (10:07 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 26 Jan 2017 15:07:06 +0000 (10:07 -0500)
lib/navigation.php

index 560e0d2..bdcac74 100644 (file)
@@ -20,7 +20,7 @@ if ( ! function_exists( 'top_bar' ) ) {
           'after' => '',                                  // after each link </a>
           'link_before' => '',                            // before each link text
           'link_after' => '',                             // after each link text
-          'depth' => 3,                                   // limit the depth of the nav
+          'depth' => 2,                                   // limit the depth of the nav
           'fallback_cb' => false,                         // fallback function (see below)
           'walker' => new Top_Bar_Walker()
       ));