Created
October 22, 2015 05:34
-
-
Save farookibrahim/ca25ddd5101f4fbf6456 to your computer and use it in GitHub Desktop.
Sportexx Search Block Text Change
This file contains 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
if( ! function_exists( 'sportexx_navbar_right_search' ) ) { | |
/** | |
* Displays Search Form | |
* @since 1.0 | |
* @return void | |
*/ | |
function sportexx_navbar_right_search() { | |
?> | |
<form role="search" class="form-search clearfix" action="<?php echo esc_url( home_url( '/' ) ); ?>"> | |
<div class="input-group input-search-group"> | |
<label class="sr-only" for="search-field"><?php _e( 'Type your Search', 'sportexx' ); ?></label> | |
<input id="search-field" value="<?php echo get_search_query(); ?>" name="s" type="text" class="input-search form-control" placeholder="<?php echo __( 'What are you looking for?', 'sportexx' ); ?>"> | |
<span class="input-group-btn"> | |
<button class="btn btn-search" type="submit"><i class="fa fa-search search-icon"></i><span class="sr-only"><?php echo __( 'Search', 'sportexx' ); ?></span></button> | |
</span> | |
<input type="hidden" name="post_type" value="product" /> | |
</div><!-- /input-group --> | |
</form> | |
<?php | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment