• Hi !

    I was wondering, is a Fall Back Menu normal practice, what I mean is, do all WordPress Theme’s need it?

    And if so, is there a current example on how to create a Fall Back Menu?

    This is what I have within my funtions.php file:

    // This theme uses wp_nav_menu() in one location.
    	register_nav_menus( array(
    		'primary' => __( 'Primary Navigation', 'XXXXXXXXX' ),
    	) );

    And in my header.php file:

    <nav>
       <?php wp_nav_menu( array('theme_location' => 'Primary', 'menu' =>  'Primary','container' => '', 'items_wrap' => '<ul class="main">%3$s</ul>'  )); ?>
    </nav>

    Any suggestions are welcome.

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • If you do not specify a callback in wp_nav_menu(), it will fall back to wp_page_menu() by default.

    Thread Starter mooapo

    (@mooapo)

    I get that!

    But esmi, should I have a fallback…?

    I guess what I am asking is this, is a Fallback a must? And if so, how does one create a Fallback Menu.

    Also, as you can see, I have calledback the wp_nav_menu() that I have registered on my functions.php. So am I good, or do I need to have a Fall Back Menu?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘' fall back for main menu ' question ! ! ! !’ is closed to new replies.