Skip to content

Snippet: 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 -->

			

		</div>

	</div>

<?php }
add_action( 'wpex_hook_header_after', 'add_custom_menu_above_main_content' );
All PHP snippets should be added via child theme's functions.php file or via a plugin. We recommend Code Snippets (100% Free) or WPCode (sponsored)
Back To Top