WordPress.org

Ready to get started?Download WordPress

Forums

no child menu items displaying, WP 3.1 (13 posts)

  1. phendyr
    Member
    Posted 3 years ago #

    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

  2. govpatel
    Member
    Posted 3 years ago #

    It has to be css post your css in http://wordpress.pastebin.com and paste the url here

  3. phendyr
    Member
    Posted 3 years ago #

    Thanks govpatel, here is the link:

    http://pastebin.com/fMDSc6eJ

  4. govpatel
    Member
    Posted 3 years ago #

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

  5. phendyr
    Member
    Posted 3 years ago #

    http://webtest.appletoncompressor.com

    submenu is set up under services.

  6. govpatel
    Member
    Posted 3 years ago #

    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' )
    		)
    	);
    }
  7. phendyr
    Member
    Posted 3 years ago #

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

  8. govpatel
    Member
    Posted 3 years ago #

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

  9. phendyr
    Member
    Posted 3 years ago #

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

  10. phendyr
    Member
    Posted 3 years ago #

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

  11. govpatel
    Member
    Posted 3 years ago #

    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.

  12. phendyr
    Member
    Posted 3 years ago #

    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!

  13. phendyr
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic