WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Im attempting to use twitter UL styles on a custom menu widget.

For example, in BootStrap they have a Nav List Style for UL's

<ul class="nav nav-list">
    <li class="nav-header">List header</li>
    <li class="active"><a href="#">Home</a></li>
    <li><a href="#">Library</a></li>

Which I am trying to integrate with a Custom Menu...

<div class="menu-footer_left-container">
    <ul id="menu-footer_left" class="menu"><!-- I need to add "nav nav-list" here! -->
        <li id="menu-item-100" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-100"><a href="http://mysite.dev">Home</a></li>
        <li id="menu-item-101" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-101"><a href="http://mysite.dev/about-us/">About Us</a></li>

What I'd like to be able to do is add the classes to the UL and LI's, but I'm stumped.

Please advise.

share|improve this question
So far, the only way I have found is to use jQuery to add classes. – sleeper Aug 31 '12 at 22:23
up vote 2 down vote accepted

you would have to do something like this

<?php wp_nav_menu( array( 'sort_column' => 'menu_order', 'container_class' => 'menu-header' ) ); ?> The container class you can change your class add more class

share|improve this answer
This gets me to the UL. I'll take it. Thanks! – sleeper Sep 1 '12 at 1:48

Your Answer


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.