Support » Themes and Templates » 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

Viewing 1 replies (of 1 total)
  • The drop downs are controlled by CSS and/or JavaScript. So you aren’t going to find a solution through changing the WordPress functions.

    It’s not going to be quite as simple as deleting a line of CSS to make this change and depends a bit on how it is being done currently. But the long and short of it is that these modifications will be made in either just the CSS file, and maybe a JavaScript file too; that just depends on the theme.

Viewing 1 replies (of 1 total)
  • The topic ‘show childpages permanent in navigationbar’ is closed to new replies.