admin管理员组

文章数量:1125742

I am trying to remove the <div> that wraps the <ul>, but when I set 'container' to false or '' the <div> still shows up. Why is it not being removed?

Example with false:

<nav id="site-navigation" class="main-navigation navigation">
  <?php wp_nav_menu(
            array( 'theme_location'=> 'header-menu',
                   'menu_id' => 'header-menu',
                   'container' => false,
                   'depth' => 2, ) );
    ?>
</nav>

Example with '':

<nav id="site-navigation" class="main-navigation navigation">
  <?php wp_nav_menu(
            array( 'theme_location'=> 'header-menu',
                   'menu_id' => 'header-menu',
                   'container' => '',
                   'depth' => 2, ) );
    ?>
</nav>

本文标签: theme developmentWhy is wpnavmenu() not removing the container around the nav ltulgt