Snippets repository for WordPress developpers

Browse
// into any page or template
<?php
if ( has_nav_menu( 'main' ) ) {
  wp_nav_menu(
    array(
      'container' => 'nav',
      'container_class'	=> 'main-menu',
      'items_wrap' => '<ul>%3$s</ul>',
      'menu_id'	=> '',
      'menu_class' => '',
      'theme_location' => 'main'
    )
  );
}
?>
Tags:

Categories

Tags