show childpages permanent in navigationbar
-
I got a problem with the behaviour of http://wordpress.org/extend/themes/autumn-leaves:
whenever i hover over a parent pages it drops off existing childpages.
when clicking them the menu stays on level one, so you don’t now where you are. how can i change this behaviour into showing the childpages all the time (as a static submenu in navigation bar)?the menu is located in header.php
<div id="access"> <?php sandbox_globalnav() ?> </div><!-- #access -->
because the theme is based on sandbox theme the wp_list_pages() can be found in the functions.php
// Produces a list of pages in the header without whitespace function sandbox_globalnav() { if ( $menu = str_replace( array( “\r”, “\n”, “\t” ), ”, wp_list_pages(’title_li=&sort_column=menu_order&echo=0′) ) ) $menu = ” . $menu . ”; $menu = ” . $menu . “\n”; echo apply_filters( ‘globalnav_menu’, $menu ); // Filter to override default globalnav: globalnav_menu}
adding “&depth=2” didn’t work. probably it’s a simple line in the style.css or wordpress is simply not made for showing a menu which is that easy.
what i want: a 2-level navigation bar with complete control over the fontsize and everything. i allready got this when i made childpages at the first parentpage – but the show themselves when putting the mouse on that parentpage …
best regards
- The topic ‘show childpages permanent in navigationbar’ is closed to new replies.