Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a client who's designed a menu with a tricked-out dropdown for the child pages of only one parent page, and he'd like to have it use the new custom menu option. I know how to code custom menus but not how to add the extra code in the middle that will trick out his dropdown the way he wants. (The stuff in the div labeled "bottom" adds rounded corners, and the secondary menu also has alternating classes for the li's, just to make things more interesting.) Can somebody give me some advice on how to make this happen?

Here's the way the dropdown was coded in straight html:

<ul id="nav">
<li><a href="#">HOME</a></li>
<li><a href="#">Page 2</a>
    <div class="drop">
        <ul>
            <li><a href="#">Subpage 1</a></li>
            <li class="alt"><a href="#">Subpage 2</a></li>
            <li><a href="#">Subpage 3</a></li>
            <li class="alt"><a href="#">Subpage 4</a></li>
            <li><a href="#">Subpage 5</a></li>
            <li class="alt"><a href="#">Subpage 5</a></li>
            <li><a href="#">Subpage 6</a></li>
            <li class="alt"><a href="#">Subpage 7</a></li>
        </ul>
            <div class="bottom">
                <div class="box-center"></div>
                <div class="box-right"></div>
            </div><!-- /bottom -->
    </div><!-- /drop -->
</li>
<li><a href="#">Page 3</a></li>
<li><a href="#">Page 4</a></li>
<li><a href="#">Page 5</a></li>
<li><a href="#">Page 6</a></li>
<li><a href="#">Page 7</a></li>
<li><a href="#">Page 8</a></li>
<li><a href="#">Page 9</a></li>
</ul>

Please help! Thanks in advance!

share|improve this question
Closing for lack of OP follow-up. – EAMann Mar 28 '12 at 22:13

closed as too localized by EAMann Mar 28 '12 at 22:14

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

1 Answer

I'm currently looking into this, but i guess you will have to use a custom Walker...

EDIT: doesn't help too much: wp_get_nav_menu_items( 'name of the menu, you see in the apearance > menus menu on the upper right' );

Anyway you can find in my profile about stuff that's close to what you need, but in your case, i guess, you'll really have to go the hard way and write a completely new Walker (no hooks/filters in there in core).

share|improve this answer
Okay, thanks for the help. :) – user885 Mar 18 '11 at 1:49