I’m Trying to Use ‘container’ => false But It Won’t Work
-
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 © 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 adiv
.
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.