May 31, 2011 · Updated: Nov 04, 2017 · by Tim Kamanin
If you build a View with an exposed filter you may want to put this filter in a block. This is can be done to separate filter from view results and to display exposed filter in any part of your website. To do this, go and edit your view.
But what if you want to theme this block and change the way exposed filter behaves , what do you do? Since there is no any mention of "exposed filter in a block template file" in Views Theming information list, it is a bit tricky to guess which file to edit and how to name it. Here is what you should do:
That's it, now you can edit views-exposed-form--user-comments.tpl.php file and all changes will be shown in a block with your exposed filter. Enjoy!
Hey, if you've found this useful, please share the post to help other folks find it: