• Resolved mcartur

    (@mcartur)


    Hi there,

    congratulation for the plugin. I have the following question:
    What is the best way to add login/logout links in your menus?

    I mean, is there an equivalent to “wp_nav_menu_items” filter within max-mega-menu so I can add the menu items with the appropriate mega-menu classes?

    Right now I am using the wp_nav_menu_items filter and adding the mega-menu classes manually:
    mega-menu-item mega-menu-item-type-custom mega-menu-item-object-custom mega-menu-item-has-children mega-align-bottom-left mega-menu-flyout

    But I am unable to add the mega-menu-item-NUMBER class correctly and the responsivenes does not work ok.

    Thanks you for your time and support.

Viewing 1 replies (of 1 total)
  • Plugin Author megamenu

    (@megamenu)

    Hi mcartur,

    It will be impossible to add a mega-menu-item-NUMBER class correctly if you add the items dynamically (as the item will not have a number).

    I suggest adding both Login and Logout links to the menu under Appearance > Menus. Then filter out the item depending on logged in status.

    That is how the User Roles / Permissions functionality works in MMM Pro.

    Regards,
    Tom

Viewing 1 replies (of 1 total)
  • The topic ‘Best practice adding Login & Logount links’ is closed to new replies.