SHARE
TWEET

Add Search Bar to Primary Navigation

jamiemarsland Jun 18th, 2013 3,037 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_action( 'woo_nav_inside', 'woo_custom_add_searchform', 10 );
  2.  
  3. function woo_custom_add_searchform () {
  4.     echo '<div id="nav-search" class="nav-search fr">' . "
  5. ";
  6.     get_template_part( 'search', 'form' );
  7.     echo '</div><!--/#nav-search .nav-search fr-->' . "
  8. ";
  9. } // End woo_custom_add_searchform()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top