<?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>Thesis Hacker &#187; search bar</title>
	<atom:link href="http://www.thesishacker.com/category/search-bar/feed" rel="self" type="application/rss+xml" />
	<link>http://www.thesishacker.com</link>
	<description>Customize Thesis</description>
	<lastBuildDate>Thu, 21 May 2009 16:22:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Move the search bar</title>
		<link>http://www.thesishacker.com/move-the-search-bar</link>
		<comments>http://www.thesishacker.com/move-the-search-bar#comments</comments>
		<pubDate>Thu, 22 Jan 2009 20:01:11 +0000</pubDate>
		<dc:creator>Nasty</dc:creator>
				<category><![CDATA[header]]></category>
		<category><![CDATA[search bar]]></category>
		<category><![CDATA[custom.css]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[move search bar]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[thesis]]></category>

		<guid isPermaLink="false">http://www.thesishacker.com/?p=644</guid>
		<description><![CDATA[Check out where the search bar is on this site. I moved it from it's default location to within the search bar. Here's how I did it.]]></description>
			<content:encoded><![CDATA[<p>Check out where the search box is. I moved it into the nav bar. Here&#8217;s how I did it&#8230;</p>
<p>First thing I did was to view the page source. From there I found the search form code and copied it. Next I went to my custom_functions.php file and created a function with it.</p>
<p>In your custom_functions.php file add the following code. You can put it anywhere you want but I recommend putting it at the top after the &lt;?php tag. Remember, once you make the change, save it, and upload it to your server. Always describe the function and put it between the comment tags /*  */ at the beginning shown below in green. The comments aren’t shown on your rendered page and it just makes things easier for you to remember…</p>
<p class="alert"><span style="color: #339966;">/*put the search bar in the header*/</span><br />
function searchbar () {?&gt;<br />
&lt;div class=&#8221;search&#8221;&gt;<br />
&lt;form class=&#8221;search_form&#8221; action=&#8221;http://www.thesishacker.com/&#8221; method=&#8221;get&#8221;&gt;<br />
&lt;p&gt;<br />
&lt;input id=&#8221;s&#8221; class=&#8221;text_input&#8221; type=&#8221;text&#8221; onblur=&#8221;if (this.value == &#8221;) {this.value = &#8216;To search, type and hit enter&#8217;;}&#8221; onfocus=&#8221;if (this.value == &#8216;To search, type and hit enter&#8217;) {this.value = &#8221;;}&#8221; name=&#8221;s&#8221; value=&#8221;To search, type and hit enter&#8221;/&gt;<br />
&lt;input id=&#8221;searchsubmit&#8221; type=&#8221;hidden&#8221; value=&#8221;Search&#8221;/&gt;<br />
&lt;/p&gt;<br />
&lt;/form&gt;<br />
&lt;/div&gt;<br />
&lt;?php<br />
}<br />
add_action (&#8217;thesis_hook_header&#8217;,&#8217;searchbar&#8217;);</p>
<p>As you can see I placed the search bar in the header. In your custom.ss file add the following code. You can put it anywhere you want but I recommend putting it at the top. Remember, once you make the change, save it, and upload the new file to your server. Always describe what you&#8217;re doing by putting your descripton between the comment tags /*  */ at the beginning shown below in green. The comments aren’t shown on your rendered page and it just makes things easier for you to remember…</p>
<p class="alert"><span style="color: #339966;">/*search form positioning*/</span><br />
.custom .search {position: absolute;<br />
z-index: 1;<br />
margin: 1em 0 0 81em;<br />
}</p>
<p>I tweaked it to my liking and added a z-index of 1. This makes the search form lay on top of everything else</p>
<p>I gave it an absolute position because I placed it in the header which has a position of relative</p>
<p>To see how I built the header <a href="http://www.thesishacker.com/?p=211">check out this tutorial</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesishacker.com/move-the-search-bar/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

