I am trying to add a secondary menu above the header. I have created a function in /inc/extras.php
and registred it in the functions.php
.
function sparkling_secondary_menu() {
// display the WordPress Custom Menu if available
wp_nav_menu(array(
'menu' => 'secondary',
'theme_location' => 'secondary',
'depth' => 1,
'container' => 'div',
'container_class' => 'collapse navbar-collapse navbar-ex1-collapse',
'menu_class' => 'nav navbar-nav',
'fallback_cb' => 'wp_bootstrap_navwalker::fallback',
'walker' => new wp_bootstrap_navwalker()
));
}
But I am not sure how to make a right placement of this menu. Would appreciate any help. Thanks.