I registered a wordpress menu this way:
function nothing_register_menus() {
register_nav_menu('header-menu',__( 'Header Menu' ));
}
add_action( 'init', 'nothing_register_menus' );
I am calling wp_nav_menu that way:
wp_nav_menu( array(
'theme_location' => 'header-menu',
'container' => false,
'echo' => false,
'menu_class' => 'nav-menu horiz-menu container',
'items_wrap' => '<ul class="sixteen columns">%3$s</ul>'
) )
But the output always looks the same. The menu class is correct, but the wrapping ul never has a class.
your problem is in your use
'menu_class'
and'items_wrap'
not synchronized.You can edit :
or:
Apologize for my English is bad !
Straight from the codex:
Therefore your
items_wrap
should look like this:where
%2$s
will be replaced by ‘nav-menu horiz-menu container’.I don’t know where you expect the ‘sixteen columns’ classes to render.