Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Create Additional Header Items

Home / Forums / Kadence Theme / Create Additional Header Items

This topic is: Awaiting Feedback
[Awaiting Feedback]
Posted in: Kadence Theme
March 2, 2023 at 6:55 pm

Hi. We have a complex build where we need numerous different headers with different navigation inside each. We are using conditional headers to display these, and that works great. The problem is, I need to create more Navigation Header Items that I can assign menus to.

The following code was used to create the menus in functions.php:

// Add Custom Menus
function register_my_menus() {
register_nav_menus(
array(
'austin-menu' => __( 'Austin Menu' ),
'houston-menu' => __( 'Houston Menu' ),
'dallas-menu' => __( 'Dallas Menu' ),
'satx-menu' => __( 'SATX Menu' ),
'corpus-menu' => __( 'Corpus Menu' )
)
);
}
add_action( 'init', 'register_my_menus' );

We are already using Primary and Secondary Navigation items, so we need add at least three more. Is there similar code I can use to create more header items?

  • The forum ‘Kadence Theme’ is closed to new topics and replies.