Even though I've overriden the block.html.twig template, as well as region.html.twig, Drupal still outputs a lot of hardcoded HTML in my templates, for Block Regions (from Layouts) for example.


{% set attributes = attributes.addClass([
  'block-' ~ configuration.provider|clean_class,
]) %}


{% if content %}
    {{ content }}
{% endif %}

What am I missing? Why do I keep seeing all this markup?

enter image description here

enter image description here

  • Are you referring to the comments (green blocks)? – Eyal Apr 30 '17 at 14:16
  • well I don't mind the comments of course:) I'm referring to the actual HTML divs inserted by Drupal. – George Katsanos May 7 '17 at 11:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.