Mr Treublaan 1-3
1097 DP Amsterdam
The Netherlands

Drupal Theming: how to remove all 'filter tips & guidelines' in Drupal 10 core theme 'Claro'

Declutter your Drupal administration theme
12 Apr, 2023 Drupal

Home Blog Drupal Theming: how to re...

drupal remove filter guidelines tips

So I'd like to keep the admin UI as clean as possible for clients, and since they only use one text format at the moment, all filter guidelines and tips are cluttering the Drupal administration interface too much. So in previous Drupal versions there where modules to fix this, but for 10 not (yet) available.

Also, I'd like to keep overhead to a minimum and 'every module counts', so here is a simple solution.

  • Create a subtheme for Claro
  • Add an extra theme library
  • Let that library contain a css file, that hides filter tips

Also mighty handy for all kinds of additional Drupal administration theme tweaks and optimizations!

Here's the code:

 

YOURTHEME.info.yml

name: Your Sub Theme
type: theme
base theme: claro
description: 'Subtheme of Claro.'
core_version_requirement: ^10
libraries:
  - YOURTHEME/global-styling-YOURTHEME
regions:
  header: 'Header'
  pre_content: 'Pre-content'
  breadcrumb: Breadcrumb
  highlighted: Highlighted
  help: Help
  content: Content
  page_top: 'Page top'
  page_bottom: 'Page bottom'
  sidebar_first: 'First sidebar'
regions_hidden:
  - sidebar_first
YOURTHEME.libraries.yml
global-styling-YOURTHEME:
  css:
    component:
      assets/css/YOURTHEME_styles.css: {}

YOURTHEME_styles.css

.filter-guidelines,
.form-wrapper.filter-wrapper{
  display:none;
}

Drupal theming Planet Drupal
Written by Joris Snoek | Apr 12, 2023
Let's Talk

Vertel mij over jullie project, ik hoor het graag!
Mail , of stuur een bericht:

Got some more time?

Related content
26 May, 2021 Drupal

Met nieuwe functies als: @-mentions, drag-drop afbeeldingen & algemene instellingen.


06 Apr, 2021 Drupal


17 Aug, 2020 Drupal

Een Drupal Module Voorbeeld Inclusief Twig Template.