We’re upgrading from Legenda v2.6.3 to v3.2 (the latest), and have come
across a change in how Legenda displays its menus. In 2.6.3, the code
in question is in Et_Navigation::start_el, on line 3317 in
framework/theme-functions.php:
if(strpos($class_names,’image-item’) !== false){$description = ‘description).'” alt=” “/>’;}
In 3.2, Et_Navigation::start_el has been moved to framework/walkers.php,
and the line in question is line number 115:
if($item->description != ”) {
$description = ‘<span class=”menu-item-descr”>’. do_shortcode($item->description) . ‘</span>’;
}
Basically, I’m wondering what the correct way is to override the 3.2
behavior and revert to how 2.6.3 does it. I assume I’d need to override
Et_Navigation::start_el somehow and just replace the one line with the
older version, but I’m not sure how to do that within the context of a
child theme.