3

I need to delete a div made by the container.html.twig. How can I rename this template to this specific region?

<!-- THEME DEBUG -->
<!-- THEME HOOK: 'container' -->
<!-- BEGIN OUTPUT from 'themes/newbikes/templates/system/container.html.twig' -->
<div class="form-group">

thx.

1

Copy core template to your theme template folder (yourtheme/templates) core/themes/stable/templates/form/container.html.twig and clear caches.

| improve this answer | |
  • I don't think this is the correct answer. I assume that they're asking how to specifically remove the container in that one instance, not sitewide. It only suggests a global template rather than ones that are more specific. The answer would probably really be to use a preprocess. – Matt Fletcher Nov 5 '17 at 21:56

Your Answer

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

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