Astra_Ext_Nav_Menu_Markup::add_mega_menu_classes()
Mega Menu Header Classes
Description
Add classes of mega menu only if Primary Menu is set.
Return
(void;)
Source
File: addons/nav-menu/classes/class-astra-ext-nav-menu-markup.php
public function add_mega_menu_classes() { if ( has_nav_menu( 'primary' ) ) { add_filter( 'astra_primary_menu_classes', array( $this, 'add_primary_menu_classes' ) ); add_filter( 'astra_secondary_menu_menu_classes', array( $this, 'add_primary_menu_classes' ) ); } }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.7.2 | Introduced. |