2

I have created Tours for my users and allowed them to see the Admin Toolbar as a result. However, I have the following unpleasant toolbar:

enter image description here

I would like the "Manage" item to be gone altogether when there's only the Logout & Home link. How could I achieve such behavior?

Note: I've tried disabling the Tools item in the Administrative menu UI and that kinda works, but the Manage item is still displayed.

2
  • I'm new to drupal as well, but not new to programming. I have the same question, there is nothing easy about drupal. (Pulling my hair out)
    – Chad
    Oct 4, 2017 at 15:47
  • @Chad, see d70rr3s answer. Mar 14, 2018 at 18:38

1 Answer 1

2

TLTTP;

Is a core bug since 6.4 version (https://www.drupal.org/node/296693) you can use the latest version of admin_toolbar (https://drupal.org/project/admin_toolbar) which haves a submodule specific for that issue. Unfortunately this only works for 'admin_menu' menu but not the toolbar menu (the black bar on top). To hide specific toolbar elements or toolbar element tray links (toolbar element links) you can implement hook_toolbar_alter(&$items) hook (https://api.drupal.org/api/drupal/core!modules!toolbar!toolbar.api.php/8.5.x).

Hope it helps someone.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.