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">



1 Answer 1


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

  • 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. Commented Nov 5, 2017 at 21:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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