Add search bar to Thesis nav


/ Published in: PHP
Save to your folder(s)

Add the PHP to custom_functions.php and the following CSS to custom.css

.custom ul.menu li.search {float:right;}
.custom ul.menu li.search form {padding:0.3em;}
.custom ul.menu li.search form input {padding:0.4em;}


Copy this code and paste it in your HTML
  1. function add_search_nav() {
  2. ?>
  3. <li class="search"><?php thesis_search_form(); ?></li>
  4. <?php
  5. }
  6. add_action('thesis_hook_last_nav_item','add_search_nav');

URL: http://www.kristarella.com/2009/04/full-width-headers-in-thesis-15/#comment-67088

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.