Add Search Form to Thesis Nav Menu

This document is deprecated! The information on this page refers to a Thesis version that is now obsolete. Please visit the Thesis Docs for current documentation.

If you’re using the WordPress Nav Menu, see Add Search Form to WordPress Nav Menu.

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;
}