Hi,
When I search for any product on my website. It shows the blogs also related to that keyword. So, I just want to show products not blogs on search results.
Website - http://tanzire.co/
This is my current code on search.liquid
{% paginate search.results by 12 %}
{% if search.performed == false %}
# {{ 'general.search.title' | t }}
{% else %}
#
{{ 'general.search.heading' | t: count: search.results_count }}:
{{ 'general.search.results_with_count' | t: terms: search.terms, count: search.results_count }}
{% endif %}
{% if search.performed and search.results_count == 0 %}
---
{{ 'general.search.no_results_html' | t: link: routes.root_url }}
{% endif %}
{% if search.performed %}
{% if search.results_count > 0 %}
---
{% endif %}
## {{ 'general.search.heading' | t: count: search.results_count }}
{% for item in search.results %}
- {% if item.object_type == 'product' %}
{% include 'product-card-grid', product: item %}
{% else %}
{{ item.title }}
{% if item.image %}
{% endif %}
{{ item.title }}
{% if item.published_at %}{{ item.published_at | date: format: "date" }} — {% endif %}
{{ item.content | strip_html | truncate: 200 }}
{% endif %}
{% endfor %}
{% if paginate.pages > 1 %}
{% include 'pagination' %}
{% endif %}
{% endif %}
{% endpaginate %}