Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.
<div class="news-features">
           <h5><a href="">News & Features</a></h5>
           <ul>
               <li><a href="">Industry News</a></li>
                ............
            </uL>
</div>

First Menu need h5 tag then others menu need ul li tage.

share|improve this question
    
can you explain? how would your HTML look like? you want all main items to have <H5>? –  janw Apr 18 '12 at 11:22
    
yes, all main items <H5> –  asraful Apr 18 '12 at 11:58

1 Answer 1

You'll have to extend the Walker class.

See /wp-includes/nav-menu-template.php for reference.

share|improve this answer
    
I solve this problem wp_nav_menu() + uses jQuery according to my requirement.following -->> <?php wp_nav_menu( array( 'menu' => 'fot-both', 'items_wrap' => '%3$s', container => false ) ); ?> and use jQuery.....wrap(). –  asraful Apr 19 '12 at 12:16
    
@asraful While it's good you found a solution to your problem, using javascript to alter simple output is a very unclean solution. A custom walker would be the clean way to handle this. –  Johannes Pille Apr 19 '12 at 12:26

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.