Skip to content

Instantly share code, notes, and snippets.

@srikat
Created May 14, 2013 04:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save srikat/5573603 to your computer and use it in GitHub Desktop.
Save srikat/5573603 to your computer and use it in GitHub Desktop.
Adding a search box in nav bar in WooThemes Canvas
<?php
add_action( 'woo_nav_inside', 'woo_add_nav_search', 30 );
if ( ! function_exists( 'woo_add_nav_search' ) ) {
function woo_add_nav_search () { ?>
<div class="fr">
<?php get_search_form(); ?>
</div>
<?php }// End woo_add_nav_search()
}
?>
form#searchform {
background: none;
border-width: 0;
}
form#searchform input#s {
border-color: #CCCCCC #EFEFEF #EFEFEF #CCCCCC;
border-style: solid;
border-width: 1px;
color: #777777;
width: 60%;
}
form#searchform .screen-reader-text {
display: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment