Forums

More than one custom menu will not display (2 posts)

  1. michael divine
    Member
    Posted 5 months ago #

    I have been struggling with this in every which way...

    I have two custom menus - one in the header and one the footer.

    This is my functions.php code:

    add_action( 'init', 'my_custom_menus' );
          function my_custom_menus() {
             register_nav_menus(
                array(
          'primary-menu' => __( 'Primary Menu' ),
          'secondary-menu' => __( 'Secondary Menu' )
                        )
                 );
          }

    This is my header.php and footer.php code:

    <?php wp_nav_menu(array('cmv' => 'primary-menu', 'container_class' => 'topMenu')); ?>
    <?php wp_nav_menu(array('cmv' => 'secondary-menu', 'container_class' => 'tbotMenu')); ?>
  2. esmi
    Theme Diva & Forum Moderator
    Posted 5 months ago #

    There is no cmv attribute for wp_nav_menu. Perhaps you meant theme_location?
    http://codex.wordpress.org/Function_Reference/wp_nav_menu

Reply

You must log in to post.

About this Topic