Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Hadi khosrojerdi

    (@rss_samuel)

    Hi IAS UMN. The menubar-widgets adds widgets to sub-menu( html ul tag ) of menu items, In now not any way to adds widgets to itself item ( html li tag).

    Please tell me why you want to add widgets to itself items !?

    If you want to hide or visible widgets for specific item, you can to add css classes to menu item by css classes field in menu section, for example “menu-item-visible” or “menu-item-hidden” and css code can’s be like this:

    .

    li.menu-item-hidden ul.sub-menu {
    display: none !important;
    }

    li.menu-item-visible ul.sub-menu {
    display: block !important;
    }

    .

    In next versions of menubar-widgets i may to active shortcode for menu item description , also i may to add filters or actions for developer’s.

    Sorry for my bad english.

    Thread Starter IAS UMN

    (@ias-umn)

    Thanks for the reply.
    https://ias.umn.edu
    Right now, I have a search bar widget in the default sidebar. I think it would look better at the right end of the main menu. It just seems more appropriate to have a search bar as a menu item rather than subitem.

    Superb plugin Hadi!
    Appreciated.
    Yes, this too is my question, how to add the widget as an actual top-level menu item rather than as a sub-menu item.
    I am looking to add a ‘login/logout’ option on the menu item but a search bar in that location would be ideal also.
    I am not sure, I have watched a few times, your video at: https://vimeo.com/98075577
    and it seems to show you editing some css code, the result of which is to move a submenu item to the top-level menu item.
    Am I right in that please?
    Regards
    TelB

    Plugin Author Hadi khosrojerdi

    (@rss_samuel)

    Hello @telb and thanks for feedback.

    Yes, this too is my question, how to add the widget as an actual top-level menu item rather than as a sub-menu item.

    Now this is not possible except with CSS, because the MBW plugin adds widgets to sub-menu item (
    <li><ul/>widgets</ul</li>
    )and not menu, so you can only give blank menu title and save menu, then add your css to /your-theme/style.css

    and it seems to show you editing some css code, the result of which is to move a submenu item to the top-level menu item.

    No, I only hide sub-menu using css.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Widget as menu item itself, not subitem?’ is closed to new replies.