How to create a search form in Blogger template.
I often forget how to create a blog search form, despite how simple it is.
<form action="/search">
<input placeholder="Search this blog" type="search" name="q">
<button type="submit"> Search </button>
</form>And that's how you make it. A form that request to the /search page with a q query parameter, which is, the search query.
![]() |
| Simple Blogger search form. |
The search button is optional because hitting Enter will submit the form, but I always keep it there just in case.
Knowing how to build it helps in customizing the blog search, for example, you can display 100 posts in the homepage, but only 20 in the search page. This behaviour is not possible by default because both page are using the same page limit.
https://www.blogger.com/rpc_relay.html https://www.blogger.com/comment/frame/220561901913020919?po=1148266182310733483&hl=en&saa=85391&origin=https://xmlexpr.blogspot.com&skin=contempo https://xmlexpr.blogspot.com/2025/09/blogger-search-form.html#comments https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHgNN6-oDlbvFk8rSzCmimXZ4FyS-TwsjGGjrD9r3wqd601UOw6Ec0nPG2WZiyIHX4_mrhGUuiUyPNsQz-p6jIuCBj9HpKkIikLjAi25lkE-0sCljJwEuO2_fcgHnDIQH7IEtgc1cNJ-wf-mmHaQRPSO7qMRHiNUk8JgcH9T0dvfAI_y7WxnaVfHR0SbVG/s72-c/blogger-search-form.png true