sbrajesh

Brajesh Singh

Feb 3rd, 2011
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.47 KB | None | 0 0
  1. /**enable custom top nav in functions.php*/
  2.  
  3. //put this line in functions.php
  4. register_nav_menus( array(
  5.                     'top-main-nav' => __( 'Top Main Navigation' ),
  6.             ) );
  7.  
  8. //put this line in header.php
  9. <?php wp_nav_menu(array( 'container_class' => '','container'=>'', 'theme_location' => 'top-main-nav' )); ?>
  10. //u may add some other parameters in the above wp_nav_menu
  11.  
  12. //assign the custom nav from Appearance->Menu to "Top Main Navigation" and check
Add Comment
Please, Sign In to add comment