Skip to content

Instantly share code, notes, and snippets.

@ibndawood
Last active October 15, 2015 06:08
Show Gist options
  • Select an option

  • Save ibndawood/ab2555b5eb921ef0e219 to your computer and use it in GitHub Desktop.

Select an option

Save ibndawood/ab2555b5eb921ef0e219 to your computer and use it in GitHub Desktop.
Changing "What are you looking for ?" text by overriding sportexx_navbar_right_search function
<?php
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 __( 'Your text ?', '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