Create container.html.twig template for specific page I'm attempting to edit the search page.
I've edited container.html.twig to contain

{%
  set classes = [
    has_parent ? 'js-form-wrapper',
    has_parent ? 'form-wrapper',
  ]
%}
&lt;h2&gt;Search Results&lt;/h2&gt;
&lt;div{{ attributes.addClass(classes) }}&gt;{{ children }}&lt;/div&gt;


It works fine when I leave the file name as container.html.twig. But I'd like for it to only apply to the search page. I've tried naming it container--search-results.html.twig but that did not work.

How do I rename container.twig.html to only apply to my search page?
Am not sure if this contains the answer, but you should definitely read this:

Twig Debugging