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 {float:right;}
.custom form {padding:0.3em;}
.custom 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');


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.