Posted By

kristarella on 03/21/10


Tagged

wordpress wp thesis thesiswp


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

naeemnur


Add search bar to Thesis nav


 / Published in: PHP
 

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

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

  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');

Report this snippet  

You need to login to post a comment.