Add Search Form to Navigation Menu

Applies to Version(s): Thesis 1

Place this code in custom_functions.php:

function add_search_nav() { ?>
	<li class="search"><?php thesis_search_form(); ?></li>
<?php }

add_action('thesis_hook_last_nav_item','add_search_nav');

Place this code in custom.css, and modify as needed:

.custom li.search {
	float:right;
	margin-right:2em;
	position:relative;
}

.custom li.search input[type="text"], 
    .custom li.search input[type="submit"] {
	width:100%;
	font-size:1.1em;
	line-height:1.273em;
	padding:0.636em 0.818em;
}