Shopify themes, liquid, logos, and UX
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hi there!
I'm starting my website and I'm having a problem with Search Bar.
When I search something on it, it shows some of my own pages, example below:
How can I configure to show only my products? Is there a way?
Thanks in advance.
Solved! Go to the solution
This is an accepted solution.
Hi @gabrielSM,
My first tutorial was made for search drawer, with search page, go to templates > search.liquid file and add code:
Code:
<input type="hidden" name="type" value="product" />
Hope it helps!
Hi @gabrielSM,
Please go to snippets > search-drawer.liquid file and add code here:
Code:
<input type="hidden" name="type" value="product" />
Refer https://shopify.dev/themes/navigation-search/search
Hope it helps!
Hello!
I tried but its still showing pages instead of 'No results found', example:
Any toughts?
Really appreciate!
Welcome to the Shopify community!
Thanks for your good question.
Please share your store URL.
So that I will check and let you know the exact solution here
This is an accepted solution.
Hi @gabrielSM,
My first tutorial was made for search drawer, with search page, go to templates > search.liquid file and add code:
Code:
<input type="hidden" name="type" value="product" />
Hope it helps!
Thank you so much, it worked! 😄