Display Child Pages in Custom Menu (3 posts)

  1. snowlas
    Posted 3 years ago #

    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!

  2. snowlas
    Posted 3 years ago #

    No suggestions? Is there something I need to add? Or does anyone think that child pages are disabled somewhere?

  3. WPyogi
    Forum Moderator
    Posted 3 years ago #

    Is there CSS for the menu?

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

Topic Closed

This topic has been closed to new replies.

About this Topic