I would like to display an exposed filter inside views-view-unformatted.html.twig rather than views-view.html.twig due to specific UI design?

  • I've provided an answer, but more of an explanation of your use case and where you got stuck would be really helpful.
    – Beau
    Commented May 4, 2020 at 13:34
  • Thanks, @Beau! Used Twig Tweak, displayed it using drupal_block, and solved my problem!
    – overmellow
    Commented May 6, 2020 at 0:01

1 Answer 1


Try using Views Exposed Filter Blocks.

  • Use the Twig Tweak module and embed the exposed filter block in your template with code like this: {{ drupal_block('views_exposed_filter_block:my_view_id-my_views_block_id', wrapper=false) }}.

  • You can also just place the exposed filter block in any region.

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.