Okay
  Public Ticket #1214752
Custom Menus
Closed

Comments

  • Vlad started the conversation

    Hi, 

    Can I edit the header menu in order to show different items depending if your are not logged in, logged in as a partner or logged in as a customer?

    I know I can change them form the Dashboard in My Account section, but it's pretty hard to figure it out as an user, so I would like to change the header menu.

    For example, if you are already a registered partner, I would like the 'Register as a Partner' option to disappear. Or if you are logged in as a tourist, I would like sections like 'Manage Accommodations' to disappear.

    Thank you.

  •  2,057
    Theme replied

    Hi Vlad,

    I believe you can use the following plugin to achieve role-based menu control:

    https://wordpress.org/plugins/nav-menu-roles/

    Best regards,

    themeenergy support

  • Vlad replied

    Great, thanks.

    Can you also point me to the source code that handles menus/accounts? If there is something specific.

  •  2,057
    Theme replied

    Hi,

    Menus are registered in includes/theme_actions.php from line 242 onwards.

    Best regards,

    themeenergy support