Changing The Layout of Drupal's Exposed Filter
It's been years since I've become a fan of Drupal. This nice multi-purpose CMS helped me and users by a lot, digitalizing many manual office work that cannot be done by other CMS. But sometimes, I agree on one thing -- Drupal can be not pretty at all out of the box. Creating views with 'some' exposed filters leads to this (some, not that much actually): Oh boy, made me dizzy. Let's change it! First of all, let's turn on the twig debugging so that we can see which twig template rendering this: Change the twig.config debug parameter to true: Then clear the cache, turn on the inspect element and reload the page. I am currently using bootstrap 5 theme, we can see that the twig that renders the page is the views-exposed-form.html.twig We need to override it! Let's copy that and give it special views id -- so that only this views using this twig. My views id is 'data-ekspedisi': Clear cache, done, Drupal loads it. Easy right? Next, let's get i...