Created
May 14, 2013 04:02
-
-
Save srikat/5573603 to your computer and use it in GitHub Desktop.
Adding a search box in nav bar in WooThemes Canvas
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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() | |
} | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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