WordPress.org

Support

Support » How-To and Troubleshooting » no child menu items displaying, WP 3.1

no child menu items displaying, WP 3.1

  • Hello folks,
    I’ve been searching and struggling to find an answer for this, and so for no success. I appreciate anyone’s willingness to help me understand where I’m going wrong.

    I created a menu, called “top-nav” in the admin > appearance > menus section. The menu has 8 items, one of which has a drop down menu with 2 children. The menu displays fine on the page, but the children are nowhere to be found.

    In the menus section, there’s the statement under ‘theme locations’ of:
    “Your theme supports 0 menus. Select which menu appears in each location.” Upon searching for this, I found the direction to add the following to my functions.php page:

    if (function_exists(‘add_theme_support’)) {
    add_theme_support(‘menus’);
    }

    I have done this, but there is no change in my submenu items. In my header.php file where it calls the menu, I have the following code:

    <div id=”navigation”>
    <?php wp_nav_menu(‘menu=top-nav’); ?>
    </div>

    If it’s necessary, I can post my css here, but it would get incredibly long, but will do so in needed. I greatly appreciate anyone’s help to try and debug this. Otherwise I guess I can try to add a menu plugin of some sorts.

    Thanks

Viewing 12 replies - 1 through 12 (of 12 total)
  • It has to be css post your css in http://wordpress.pastebin.com and paste the url here

    Thanks govpatel, here is the link:

    http://pastebin.com/fMDSc6eJ

    You have the dropdown in css is ther any way you can post url

    http://webtest.appletoncompressor.com

    submenu is set up under services.

    Looks like you do not have right code in functions.php needs to be

    add_action( 'init', 'register_my_menus' );
    
    function register_my_menus() {
    	register_nav_menus(
    		array(
    			'primary-menu' => __( 'Primary Menu' )
    		)
    	);
    }

    code has been updated, no change. I greatly appreciate your help in troubleshooting this!

    when you added the code above did you get a box in menu page with a primary menu

    yes, I did select and save the ‘top nav’ option in the drop down for that box.

    however it did not resolve the issue unfortunately. still no drop downs.

    Your sub menus are there in html code but are grayed out for some reason

    <li id="menu-item-190" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-190">
    <a href="http://webtest.appletoncompressor.com/?page_id=150" linkindex="2">Services</a>
    <ul class="sub-menu">
    <li id="menu-item-182" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-182">
    <li id="menu-item-181" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-181">
    </ul>
    </li>

    Do have any theme options where you need make changes.

    Not that I know of, but I will try to debug it, and if I make any progress I’ll post. might be a while, lol.

    Thanks again govpatel for your help!

    I ended up installing a plugin (PixoPoint Menu Plugin) that has the dropdowns working, but presented a couple other oddities that I’m hopefully debugging through their support forum.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘no child menu items displaying, WP 3.1’ is closed to new replies.
Skip to toolbar