After the update the structure of the menu was changed. This is a problem, because I relied on this snippet that I’ve gotten from the dev docs to render the hivepress functions in my navbar:
if (function_exists('hivepress')) {
echo hivepress()->template->render_menu();
}
Before, this snippet was enough to import the hivepress functionalities together with my custom built navbar. Now, My Profil/ My Account is missing from this, and I need a snippet to insert it again.
If you want to bring back the old account link please try filtering the hivepress/v1/templates/site_header_block to insert a new part block with user/login/user-login-link path. We’ll probably add a snippet to our Gist collection because there are a few complaints about a new link.
Okay, ill wait for the snippet. Im not too crafty in php.
However, I would like the functionality of a dropdown, just have it placed together with the buttons.
If not possible, maybe you can provide me with a way to render det different account menu items, like listings, request, favorites etc, and I can create a custom dropdown
We’ll try to find a solution for this, it’s pretty complex because the drop-down script and styles are not applied outside of the menu area, and we can’t duplicate the drop-down script because currently the drop-down also works with any third-party themes (since all the themes implement drop-down menus).
A temporary snippet would move the link to the buttons area, but the drop-down feature wouldn’t work. Rendering the account menu directly in the code would require further code changes, please consider waiting for the next update - we’ll probably find a way to fix this because this issue affects our themes with centered menus.
What I am trying is rendering the menu content specific to the current user account - the content that is dynamic, like dashbord, and showing favorite link in the menu if you have atleast one favorite added, and log out in the bottom.
Is there some parameters i can add to the above function to only dig into the hivepress menu content and slap it into my own wrapper?