[wp-testers] menu -> container_class

Peter Westwood peter.westwood at ftwr.co.uk
Sat May 22 21:15:08 UTC 2010

On 22 May 2010, at 10:53, Philip M. Hofer (Frumph) wrote:

> Taking a lead from the twentyten, I put
> <?php wp_nav_menu( array( 'sort_column' => 'menu_order', 'container_class' => 'menu-header', 'theme_location' => 'menubar' ) ); ?>
> Under the header where I would want the theme_location to represent.
> The output does not have a container class as specified.

I can only reproduce this if you don't have a menu assigned to the location.

If you don't the default fallback menu is displayed - i.e. the output of wp_page_menu

Peter Westwood
http://blog.ftwr.co.uk | http://westi.wordpress.com
C53C F8FC 8796 8508 88D6 C950 54F4 5DCD A834 01C5

More information about the wp-testers mailing list