Snippets: Add Secondary Custom Menu Under Header

function add_custom_menu_above_main_content() { ?>

	<div class="my-nav-wrapper clr">

		<div class="container clr"> <!-- .center the navbar content -->

			// Solution 1 add the navbar shortcode
			echo do_shortcode( '[vcex_navbar menu="60"]' ); // change the menu ID

			// Solution 2 using WP menu see
			// @ for args
			$args = array();
			wp_nav_menu( $args );

			// Solution 3 use a menu plugin such as uberMenu
			do_shortcode( '[menu_shortcode_here]' ); ?>



<?php }
add_action( 'wpex_hook_header_after', 'add_custom_menu_above_main_content' );

Snippet Type: PHP

Posted Under: Header

All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)