Viewing 1 to 4 of 4 items
Tag Archives: menu

Remove wrapping div and ul from output of wp_nav_menu

Removing the wrapping div is easy. When you use wp_nav_menu(), add this argument: ‘container’ => false For the <ul> element, there’s an argument called ‘items_wrap’. This will remove the ul:  ‘items_wrap’ => ‘%3$s’ Otherwise this function will remove the div for you: