Trying to get Drop Down Menu for Subpages (3 posts)

  1. narayan82
    Posted 6 years ago #


    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;

    #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!


  2. cippino
    Posted 6 years ago #

    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

  3. Frans Andersson
    Posted 5 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic