Ability to remove wrapping div in menu
-
Hi,
Before, I was having trouble removing the wrapping div in calling wp_nav_menu. And found out that this code
$menu = '<div class="' . esc_attr($args['menu_class']) . '">' . $menu . "</div>\n";'
in post-template.php does the wrapping of div in menu items which happens when there is no menu item specified in the back end. I would suggest to add if statement for this code to have the ability to turn on/off the div wrap.??
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Ability to remove wrapping div in menu’ is closed to new replies.