WordPress.org

Support

Support » Themes and Templates » Trying to get Drop Down Menu for Subpages

Trying to get Drop Down Menu for Subpages

  • narayan82
    Member

    @narayan82

    Hi,

    I have installed and customized the theme “Motion.” the blog is available on http://www.indiaopengrandprix.com/

    The sub-pages do not appear as drop down menus on the Main Nav Bar at the top. I did the following:

    1. In the Header.php file, I changed the following

    <?php wp_list_pages( ‘depth=2&title_li=0&sort_column=menu_order’ ); ?>

    (changed Depth value from 1 to 2)

    The Sub Pages now show up below the main Page on the Menu bar!

    2. in the CSS I changed the CSS from:

    #top #topmenu li ul {
    display: block;
    }

    to
    #top #topmenu li ul {
    display: none;
    }

    The Sub menu now dissappears!

    But I am unable to get the right code in the CSS to drop down the Menu when the mouseover happens on the Main nav.

    Any Suggestions?

    Thanks you in adavance!

    N

Viewing 2 replies - 1 through 2 (of 2 total)
  • cippino
    Member

    @cippino

    Hi, this don’t seems to work in the Feather Pen theme: any one know in wich way can I have drop down menues with subpages in the main menu of a theme that don’t have it? Thns Max

    I looked in to this and came up with a small hack. It ist not by any means perfect but it will get you started.

    In the header.php, change this:
    [Code moderated as per the Forum Rules. Please use the pastebin]

    Hope that gets you going!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Trying to get Drop Down Menu for Subpages’ is closed to new replies.