function register_menus() { register_nav_menus( array( 'menu-principal' => __('Menu'), ) );}
'items_wrap' => '<ul id=\"%1$s\" class=\"%2$s\">%3$s</ul>',
I need to add a class to my ul on the dinamic menu on wordpress.
I´m using this to register the menu on functions.php:
// register
But I need to add the on the functions:
With the class="sf"
¿How I should do it?
Link to codex: http://codex.wordpress.org/Function_Reference/wp_nav_menu
Ya lo encontre!
<?php wp_nav_menu( array( 'theme_location' => 'menu-principal', 'items_wrap' => '
%3$s
' ) ); ?>