jamiemarsland

Add Search Box to Header

Jun 18th, 2013
3,696
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_action( 'woo_header_inside', 'woo_custom_add_searchform', 10 );
  2.  
  3. function woo_custom_add_searchform () {
  4. echo '<div id="header-search" class="header-search fr">' . "
  5. ";
  6. get_template_part( 'search', 'form' );
  7. echo '</div><!--/#header-search .header-search fr-->' . "
  8. ";
  9. } // End woo_custom_add_searchform()
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×