Skip to content

Instantly share code, notes, and snippets.

@tjmaxwell
Created October 11, 2016 23:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tjmaxwell/0099d3a6313009fe2e6ec50fb14676ee to your computer and use it in GitHub Desktop.
Save tjmaxwell/0099d3a6313009fe2e6ec50fb14676ee to your computer and use it in GitHub Desktop.
{% assign product_only_search = true %}
{% assign grid_results = true %}
<form action="/search" method="get" role="search">
<div class="menu_c search_menu">
<div class="search_box">
{% if product_only_search == true %}
<input type="hidden" name="type" value="product">
{% endif %}
<input type="search" name="q" value="{{ search.terms | escape }}" class="txtbox" placeholder="{{ 'general.search.submit' | t }}" aria-label="{{ 'general.search.submit' | t }}">
<button class="btn btn-link" type="submit" value="{{ 'general.search.submit' | t }}"><span class="fa fa-search"></span></button>
</div>
</div>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment