Display a navigation menu

446

Last updated

Added

Informations

This code generate the navigation that are in the defined location specified in ‘theme_location’.

Code

<?php

wp_nav_menu(array(

  ‘theme_location’ => ‘main-navigation’,

  ‘container’ => ‘nav’,

  ‘container_class’ => ‘nav’,

  ‘menu_class’ => ‘nav’

));

?>

Contribute to this page

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *


'main-navigation', 'container' => 'nav', 'container_class' => 'nav', 'menu_class' => 'nav' )); ?>