Support » Fixing WordPress » Display Child Pages in Custom Menu

  • I’m fixing a custom theme a friend paid to have developed for them. The original developer used a weird plugin to deal with the menu, rather then registering a custom menu and then using the Appearance>Menus option already built in.

    So, I’ve registered a custom menu, created and saved a custom menu, but cannot get the child pages to drop down from the parent pages in the menu. Yes, I have “indented” the child pages in the custom menu set up.

    This is the code I’m using right now

    <div id="nav">
    <!-- <li><a href="<?php echo get_option('home'); ?>">Home</a></li> -->
               <?php wp_nav_menu( array( 'container_class' => 'nav', 'theme_location' => 'primary', 'depth' => 1, 'fallback_cb' => 'wp_page_menu') ); ?>
        </div> <!-- END NAV DIV -->

    Am I missing something? I did add navigation java script, within the functions.php file and in a js folder. No child pages will appear!

Viewing 2 replies - 1 through 2 (of 2 total)
  • No suggestions? Is there something I need to add? Or does anyone think that child pages are disabled somewhere?

    Is there CSS for the menu?

    EDIT – sorry, just reread your post – and you’re using JS – is it working?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display Child Pages in Custom Menu’ is closed to new replies.