<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>nhaskins.com &#187; searchform.php</title>
	<atom:link href="http://nhaskins.com/tag/searchform-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://nhaskins.com</link>
	<description>web development note book</description>
	<lastBuildDate>Mon, 06 Feb 2012 02:44:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>overwrite the default search box</title>
		<link>http://nhaskins.com/post/overwrite-the-default-search-box/</link>
		<comments>http://nhaskins.com/post/overwrite-the-default-search-box/#comments</comments>
		<pubDate>Wed, 05 May 2010 00:47:25 +0000</pubDate>
		<dc:creator>Nathan Haskins</dc:creator>
				<category><![CDATA[post]]></category>
		<category><![CDATA[searchform.php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://nhaskins.com/post/overwrite-the-default-search-box/</guid>
		<description><![CDATA[default wordpress searchbox field looked kinda bootleg on the p2 theme so, I decided to customize it real quick. Here&#8217;s what to do: 1) create a file called &#8216;searchform.php&#8217; in your theme folder 2) paste the following into the file &#60;form role="search" method="get" id="searchform" action="http://yourblog.example.com/" &#62; &#60;div&#62;&#60;label class="screen-reader-text" for="s"&#62;Search for:&#60;/label&#62; &#60;input type="text" value="" name="s" id="s" [...]]]></description>
			<content:encoded><![CDATA[<p>default wordpress searchbox field looked kinda bootleg on the p2 theme so, I decided to customize it real quick.  Here&#8217;s what to do: </p>
<p>1) create a file called &#8216;searchform.php&#8217; in your theme folder<br />
2) paste the following into the file</p>
<pre><code>&lt;form role="search" method="get" id="searchform" action="http://yourblog.example.com/" &gt;
	&lt;div&gt;&lt;label class="screen-reader-text" for="s"&gt;Search for:&lt;/label&gt;
	&lt;input type="text" value="" name="s" id="s" /&gt;
	&lt;input type="submit" id="searchsubmit" value="Search" /&gt;
	&lt;/div&gt;
&lt;/form&gt;</code></pre>
<p>3) save the file, and reload.  You should see the default search box appear, so pretty much at this point just change out &#8216;yourblog.example.com&#8217; to your address, and the customize the form.  I just got rid of the &#8216;search&#8217; button on mine.  Yea for general usability you may want to keep that.  For me, im always pressing &#8216;enter&#8217; instead of clicking buttons to search.  Good design consider&#8217;s the user experience and build from that&#8230; and since im building for me, i&#8217;ll just ditch the button.</p>]]></content:encoded>
			<wfw:commentRss>http://nhaskins.com/post/overwrite-the-default-search-box/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

