Submenu in Sidebar produces incorrect links

Viewing 2 posts - 1 through 2 (of 2 total)
  • #20667
    Fladi
    Participant

    Hi there!

    I’m trying to add a “sub-menu” to the secondary sidebar. For this I created a new menu (via Designs -> Menus). I also created a flexible widget and changed this to contain the menu. This works fine and the submenu ist displayed. Unfortunately the generated linking are not correct. Something like this is produced:

    <div class=" role="navigation" itemscope itemtype="http://schema.org/SiteNavigationElement"menu-submenu_leistungen-container" role="navigation" itemscope itemtype="http://schema.org/SiteNavigationElement">
    <ul id=" role="navigation" itemscope itemtype="http://schema.org/SiteNavigationElement"menu-submenu_leistungen" role="navigation" itemscope itemtype="http://schema.org/SiteNavigationElement" class=" role="navigation" itemscope itemtype="http://schema.org/SiteNavigationElement"menu" role="navigation" itemscope itemtype="http://schema.org/SiteNavigationElement">
    <li id=" role="navigation" itemscope itemtype="http://schema.org/SiteNavigationElement"menu-item-43" role="navigation" itemscope itemtype="http://schema.org/SiteNavigationElement" class=" role="navigation" itemscope itemtype="http://schema.org/SiteNavigationElement"menu-item menu-item-type-post_type menu-item-object-page current-menu-item page_item page-item-28 current_page_item menu-item-43 active" role="navigation" itemscope itemtype="http://schema.org/SiteNavigationElement"><a href=" role="navigation" itemscope itemtype="http://schema.org/SiteNavigationElement"http://sd.abozilla.de/leistungen/schluesseldienst/" role="navigation" itemscope itemtype="http://schema.org/SiteNavigationElement" itemprop=" role="navigation" itemscope itemtype="http://schema.org/SiteNavigationElement"url" role="navigation" itemscope itemtype="http://schema.org/SiteNavigationElement">Schlüsseldienst</a></li>

    As you can see there is some stuff like ” role=”navigation” itemscope itemtype=”http://schema.org/SiteN&#8230;.” added. This seems to come from the function enlightenment_nav_menu_container_extra_atts( $nav_menu, $args ) in ./core/navigation.php (line 26). If I change the $atts-variable to “” the generated code works, but of course lacks the extra data.

    The linking in the main-navigation works fine in every situation so I guess the is some filtering missing if the “menu” is the main-menu or a submenu.

    Any ideas how to fix this correctly?

    Best regards
    Tim

    #20668
    Fladi
    Participant

    Just detected this is a duplicate to https://www.onedesigns.com/support/topic/urls-are-not-being-used-properly-in-custom-menu

    Sorry for not seeing this ealier….

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.