Make compatible custom menu widget for Twitter Bootstrap

If I configure wp_nav_menu function, I can put the “items_wrap” option to achieve a nice navigation given by Twitter Bootstrap, thus: <ul class="nav nav-pills">%3$s</ul>. But, how to configure the custom menu widget to do the same? I mean, for achieve <ul class="nav nav-tabs nav-stacked">%3$s</ul> in all custom menu widgets, by default.

Thanks for help!
Have a nice day.

Related posts

Leave a Reply

1 comment

  1. Filter 'wp_nav_menu_args'.

    add_filter( 'wp_nav_menu_args', 'wpse_79901_nav_menu' );
    
    function wpse_79901_nav_menu( $args )
    {
        $args['items_wrap'] = '<ul class="nav nav-pills">%3$s</ul>';
        return $args;
    }