• Resolved lcwakeman

    (@lcwakeman)


    The site has a custom theme which I didn’t write, so don’t blame me.

    Trying to create sub-menus and have them display as drop downs. The issue is that the sub-menus are not in a drop down but displayed under the top level menu entry.

    Generated Menu:

    <div class="topnav"><ul id="menu-header" class="menu"><li id="menu-item-21" class="menu-item menu-item-type-post_type menu-item-object-page current-menu-item page_item page-item-2 current_page_item menu-item-21"><a href="https://127.0.0.1/">Home</a></li>
    <li id="menu-item-20" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-20"><a href="https://127.0.0.1/about/">About The Club</a>
    <ul class="sub-menu">
    	<li id="menu-item-255" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-255"><a href="https://127.0.0.1/registration/">Registration</a></li>
    </ul>
    </li>
    <li id="menu-item-19" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-19"><a href="https://127.0.0.1/offers/">Offers</a></li>
    <li id="menu-item-18" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-18"><a href="https://127.0.0.1/become-an-affiliate/">Affiliates</a></li>
    <li id="menu-item-204" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-204"><a href="https://127.0.0.1/customer-reviews/">Reviews</a></li>
    <li id="menu-item-114" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-114"><a href="https://127.0.0.1/contact-us/">Contact Us</a></li>
    </ul></div>	<!--/topnav -->

    I tried using thee twenty ten and one I based on twenty twelve and the menus display properly there. What should I look at?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter lcwakeman

    (@lcwakeman)

    Ifyou want to look at the site with a single evel menu, go to https://www.mysonorasubaru.com/.

    I can’t break the site or I will hear all kinds of grief.

    Thread Starter lcwakeman

    (@lcwakeman)

    Found the problem. actually, quite a few.

    When I looked at the css for the menu again, it looked familiar. I had used that css some time ago for a tristate menu. Well, it didn’t support sub-menus then and still doesn’t. I wrapped the menu in a div and rewrote the call to wp_nav_menu and copied the css from twenty ten for the menu. I then tweaked it to match the existing menu.

    Thanks, anyway

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Dropdown Menus not right’ is closed to new replies.