Q: I need to create one menu from home page and the other menu for other pages I need to use a menu in home and another menu in the other page so I use this code (in page-header.php):
<?php if(!is_single()) :?>      
    <?php wp_nav_menu( array('menu' => 'Menu1' )) ; >
<?php endif; ?>
<?php if(is_single()) :? >
    <?php wp_nav_menu( array('menu' => 'Menu2' )); ?>
<?php endif; ?>

But it doesn't work. Anyone can help me?

A: the right method for the job is is_singular() because this will make sure the page you are looking at is actually a single page. also no need to for having two if statement, is either true or false. 
<?php if(is_singular()) :?>      
    <?php wp_nav_menu( array('menu' => 'Menu1' )) ; >
<?php else: ?>
    <?php wp_nav_menu( array('menu' => 'Menu2' )); ?>
<?php endif; ?>

