Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.