Advertisement
firoze

menu usages as conditionally if else

Apr 14th, 2015
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. // menu usages conditionally for front-page.php & for blog index.php
  2.  
  3. <?php if(!is_home()) : ?>
  4. <!-- front page menu -->
  5. <?php wp_nav_menu( array( 'theme_location' => 'plutin_menu','menu_class'=> 'nav','menu_id' => 'top-navigation', ) ); ?>
  6.  
  7. <!-- blog page menu -->
  8. <?php else:?>
  9. <?php wp_nav_menu( array( 'theme_location' => 'plutin_menu_blog','menu_class'=> 'nav','menu_id' => 'top-navigation', ) ); ?>
  10. <?php endif;?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement