• Resolved matthisco

    (@matthisco)


    Can someone please tell me how I can delete the default drop down menu that appears when pages have subpages?

    Is there a CSS change or script I need to delete?

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Go to Admin > Appearance > Menus

    Create a new menu and add the items you want, order indent and sort however you want.
    Then in Template Location > Primary Location select your new menu.

    If you do not indent any menu items they will not show, to indent just drag right

    Thread Starter matthisco

    (@matthisco)

    Thanks for the reply.

    I need my menu to be dynamic, and add pages add hoc etc

    Can I just change the CSS or JS instead? Disable it somehow, or change the selector so it doesn’t workk?

    Thanks again

    I would do this in a child theme, so as not to change the core files. In header.php look for this:

    wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) );

    And change like so:

    wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary', 'depth' => 1 ) );

    That should only display the first level of pages or menu items in your nav menu.

    Thread Starter matthisco

    (@matthisco)

    Hi Folks,

    Thanks for your replies, I still cant get rid of the menu when you hover over a menu item, if you hover over ‘about us’ you will see what I mean.

    https://gptemplate.6te.net/

    Any help much appreciated.

    Thanks

    Thread Starter matthisco

    (@matthisco)

    FIXED – working now? very strange

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Twentyten dropdown menu – how to delete it?’ is closed to new replies.