Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**enable custom top nav in functions.php*/
- //put this line in functions.php
- register_nav_menus( array(
- 'top-main-nav' => __( 'Top Main Navigation' ),
- ) );
- //put this line in header.php
- <?php wp_nav_menu(array( 'container_class' => '','container'=>'', 'theme_location' => 'top-main-nav' )); ?>
- //u may add some other parameters in the above wp_nav_menu
- //assign the custom nav from Appearance->Menu to "Top Main Navigation" and check
Add Comment
Please, Sign In to add comment