diff --git a/core/modules/taxonomy/taxonomy.module b/core/modules/taxonomy/taxonomy.module index d58064d..063fdbb 100644 --- a/core/modules/taxonomy/taxonomy.module +++ b/core/modules/taxonomy/taxonomy.module @@ -319,11 +319,6 @@ function template_preprocess_taxonomy_term(&$variables) { foreach (Element::children($variables['elements']) as $key) { $variables['content'][$key] = $variables['elements'][$key]; } - - // Gather classes, and clean up name so there are no underscores. - $variables['attributes']['class'][] = 'taxonomy-term'; - $vocabulary_name_css = str_replace('_', '-', $term->bundle()); - $variables['attributes']['class'][] = 'vocabulary-' . $vocabulary_name_css; } /** diff --git a/core/modules/taxonomy/templates/taxonomy-term.html.twig b/core/modules/taxonomy/templates/taxonomy-term.html.twig index 2ecc713..037a669 100644 --- a/core/modules/taxonomy/templates/taxonomy-term.html.twig +++ b/core/modules/taxonomy/templates/taxonomy-term.html.twig @@ -29,7 +29,13 @@ * @ingroup themeable */ #} -