• hero12

    (@hero12)


    Hello,
    I have an issue with a menu with sub level for categories…
    it works fine except:

    it shows something like a menu title eg. “nav_menu-2”

    on page source I see

    <ul class="mega-sub-menu">
    <li class="mega-menu-item mega-menu-item-type-widget widget_nav_menu mega-menu-columns-8-of-8 mega-menu-item-nav_menu-2" id="mega-menu-item-nav_menu-2"><a class="mega-menu-link">nav_menu-2</a></li>

    that first <li
    is wrong, it shouldn’t be there
    I don’t want that “nav_menu-2” title there. What’s that?
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter hero12

    (@hero12)

    I had to hide it from my theme custom CSS

    like

    li#mega-menu-item-nav_menu-2.mega-menu-item.mega-menu-item-type-widget.widget_nav_menu.mega-menu-columns-8-of-8.mega-menu-item-nav_menu-2 {
    display: none !important;
    }

    obviously is not the right way,
    please let me know why that’s generated.
    thank you

    Plugin Author megamenu

    (@megamenu)

    Hi hero,

    The widget expects to have a widget title, if it is missing it will output the widget ID instead. This is just the way the widget works. Adding CSS to hide the title (if you don’t want one) is the correct fix.

    Regards,
    Tom

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Menu string where it shouldn’t be…’ is closed to new replies.