Skip to content

Instantly share code, notes, and snippets.

@jnicol
Created April 8, 2019 01:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnicol/062dc8fc4ac99e8e8126d7b1386c2766 to your computer and use it in GitHub Desktop.
Save jnicol/062dc8fc4ac99e8e8126d7b1386c2766 to your computer and use it in GitHub Desktop.
No <ul> or container for a WordPress menu. Useful if you want to manually add <li>'s to your menu.
<?php
wp_nav_menu( array(
'theme_location' => 'my-theme-location',
'depth' => 1,
'container' => '',
'container_class' => '',
'menu_class' => '',
'items_wrap' => '%3$s'
));
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment