<div class="gmail_quote">On Mon, Sep 5, 2011 at 10:21, Daniel Fenn <span dir="ltr">&lt;<a href="mailto:danielx386@gmail.com">danielx386@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div>Hello all,</div>
<div> </div>
<div>Right now after taking a break I got my head stuck down into my theme again and all is good.</div>
<div> </div>
<div>Reading over the guidelines reads: </div>
<div> </div>
<div>-------</div>Search Form: Must be included using get_search_form()<br><br>Themes may optionally customize the search form, as searchform.php 
<div>--------------</div>
<div> </div>
<div>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.</div>




<div> </div>
<div>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 &quot;<a title="Function Reference/comment form" href="http://codex.wordpress.org/Function_Reference/comment_form" target="_blank"><font face="Courier New">comment_form()</font></a>&quot;. I fully understand that case, and wordpress give some control over it so it not all that bad.</div>




<div> </div>
<div>But with the search form, I am realy lost on that one.</div>
<div> </div>
<div></div></blockquote></div><div><br></div><div><br></div>WordPress also gives you control over the output of the search form too (via the &#39;get_search_form&#39; filter). <div><br></div><div>So, one reason for using the function call is that if a user of your theme wishes to install a plugin that modifies the search form, they could do so without having to hack your theme.<div>

<br></div><div>As for different mark-up, I would expect you only need different styling, not different mark-up. But if you did need different mark-up, you could implement that via the filter.</div><div><div><br></div><div>

<br clear="all"><div>Mike</div>-- <br>Mike Little<div><a href="http://zed1.com/" target="_blank">http://zed1.com/</a></div><div><br></div><br>
</div></div></div>