- 🇧🇪Belgium hansrossel
In a custom module:
function MODULENAME_preprocess_superfish_menu_items(array &$variables) {
.... copy everything the first part of the function from superfish.theme.inc ....
$attributes = $item_attributes->__toString();
$menu_item_title = (string) $item['text'];
$menu_item_url = $item['url']->toString();
$link_element = '' . $menu_item_title . '';;
$link_element_menuparent = '' . $menu_item_title . '';;$variables['menu_items'][] = [
.... copy the last part of the function from superfish.theme.inc ....
}Copy superfish-menu-items.html.twig to your theme and add raw to the output of the menu links
{% if item.children is not empty %}
{{ item.link_menuparent|raw }}
{% else %}
{{ item.link|raw }}
{% endif %}