Function vanilla_theme_enable_responsiville_megamenus
Adds a class to the anchor elements inside WP Nav Menu items, so as to
enable Responsiville Megamenu for a particular menu. The class is added
(and thus the Megamenu is enabled) only if 'responsiville_megamenu'
custom arg is set in the args of 'wp_nav_menu', it resolves to true, AND
the particular menu item being processed has children (so that a Megamenu
behavior makes sense).
Parameters summary
array |
$atts |
<p>HTML attributes of the anchor elements in an
associative array.</p> |
Object |
$item |
Object containing item details. |
Object |
$args |
Nav menu arguments |
Return value summary
array
|
The filtered anchor element HMTL attributes.
|