I am trying to remove the div from the wp_nav_menu function.The codex offers some examples for which I've tried but none of them are working.
I am developing a theme on WP 3.1.2. It's a blank install with no plugins. Any help would be appreciated!
I am trying to remove the div from the wp_nav_menu function.The codex offers some examples for which I've tried but none of them are working.
I am developing a theme on WP 3.1.2. It's a blank install with no plugins. Any help would be appreciated!
BTW, I've tried:
function my_wp_nav_menu_args( $args = '' )
{
$args['container'] = false;
return $args;
} // function
add_filter( 'wp_nav_menu_args', 'my_wp_nav_menu_args' );
<?php wp_nav_menu( array( 'container' => '' ) ); ?>This topic has been closed to new replies.