Support Mega Menu for all the Header Builder Menu component
|
/ Documentation /Installation and Updates/ Support Mega Menu for all the Header Builder Menu component

Support Mega Menu for all the Header Builder Menu component

This document will help you with the mega menu for all the header builder menu component.

Till the last version of Astra & Astra Pro, megamenu only supports primary, secondary & menu-3 menus. As per the customer requirement to have mega menu support for multiple menus, we are providing here a filter provision. Users can place their menu name into this filter, and that menu will get mega menu support on the front end.

Have a glance at the attached filter for a better understanding.

Let’s say I want to have mega menu support for menu-3 & menu-4, so my updated filter will be –

add_filter( 'astra_nav_mega_menu_support', 'custom_megamenu_support', 10, 1 );
function custom_megamenu_support( $nav_menus ) {
	$nav_menus[] = 'menu_3';
	$nav_menus[] = 'menu_4';
	return $nav_menus;
}

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
On this page

Download is Just A Click Away!

Enter your email address and be the first to learn about updates and new features.

This field is required.

REWIND

YEAR IN REVIEW

Scroll to Top
Now choose your preferred
page builder addon
Choose your preferred page builder addon

Download is Just A Click Away!

Enter your email address and be the first to learn about updates and new features.

Download Free Astra Theme - Modal Popup Form