Admin Toolbar Extra Tools items on /admin/index

Created on 6 February 2019, almost 6 years ago
Updated 11 November 2019, about 5 years ago

When I visit /admin/index in Drupal, I'm presented with a list of menu items from Admin Toolbar Extra Tools.

I'd imagine that should be suppressed.

πŸ› Bug report
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States matt_paz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States tripodcreative

    Here's an easier way to do this:

    1). Copy admin-block.html.twig from core/modules/system/templates/admin-block.html.twig into your admin theme.
    2). Add this twig:

    {% set class = block.title %}
    {% set class = class|replace({' ':''}) %}
    {% set class = class|lower %}
    {%
      set classes = [
        'panel',
         class,
      ]
    %}
    
    Then, the <code><div{{ attributes.addClass(classes) }}>

    will include the class name of the region, in this case, admintoolbarsearch

    Then, in your admin theme, just

    div.admintoolbarsearch {
    display:none;
    }
    
Production build 0.71.5 2024