• Resolved Samuel

    (@samuelbacay)


    This is the block of code I’m trying to execute:

    <?php
    // Define HTML structure of Footer Menu
    $args = array (
      'footer-menu' => 'footer-menu',
      'menu_class'      => 'nav',
      'menu_id' => 'menu-main-menu',
      'container'       => false,
      'items_wrap'      => '<ul id="%1$s" class="%2$s">%3$s</ul>'
    );
    ?>
        <footer>
          <p id="colophon">Copyright &copy; 2019 Around After Dark. All rights reserved.</p>
    <?php wp_nav_menu( array( $args ) ); ?>
        </footer>
    <?php wp_footer(); ?>
      </body>
    </html>

    The output still wraps the ul within a div.

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘I’m Trying to Use ‘container’ => false But It Won’t Work’ is closed to new replies.