• I’m using drop down menus in the custom menus, but they don’t work. Instead, they show on the page beneath the parent page of the drop down menu. Any solutions or anything I’m doing wrong?

Viewing 2 replies - 1 through 2 (of 2 total)
  • It is going to depend on what theme you are using. Some themes are not going to work very well. Try a different theme to see if you can get them to work. And if they work on another theme then it is a theme issue.

    Derek

    Thread Starter Belle224

    (@belle224)

    Thanks, I’ve actually created this theme myself so I don’t know what’s going wrong. I’ve tried it in the TwentyTen theme and the drop down menus are working fine. Are there any “common” reasons why it’s not working?

    Here’s the coding I used for the custom menus:
    In my functions.php:

    add_action( 'init', 'register_my_menus' );
    function register_my_menus() {
      register_nav_menus(
        array( 'header-menu' => __( 'Header Menu' ), 'sidebar-menu' => __( 'Sidebar Menu' )));

    And here’s the code of course that I insert into the theme:

    <?php wp_nav_menu(array('theme_location' => 'header-menu')); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Drop Down Menus not working for Custom Menus?’ is closed to new replies.