[theme-reviewers] searchform.php, why?

Daniel Fenn danielx386 at gmail.com
Mon Sep 5 09:21:20 UTC 2011


Hello all,

Right now after taking a break I got my head stuck down into my theme again
and all is good.

Reading over the guidelines reads:

-------
Search Form: Must be included using get_search_form()

Themes may optionally customize the search form, as searchform.php
--------------

May I ask why that is the case? I am asking right now because what happen in
a case like mine where you need different markup for search bar in the
header, different markup in the sidebar and last and not lease, different
markup on the search results page.

Now I recall that with the wordpress comments area it used to be where you
had to write up your code by yourself and now it is all done by doing "
comment_form() <http://codex.wordpress.org/Function_Reference/comment_form>".
I fully understand that case, and wordpress give some control over it so it
not all that bad.

But with the search form, I am realy lost on that one.

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20110905/1e3d3372/attachment.htm>


More information about the theme-reviewers mailing list