Can the Search bar search the whole site and not just the products?

dsmallwood82
Tourist
15 0 2

 

Is there a way to have the search bar search the whole site and not just the products. So when they search a word it will look through the blogs posts and other pages. 

 

Replies 8 (8)

Developer-G
Shopify Partner
3079 604 859

Hello @dsmallwood82 ,

 

  Yes it's possible.  
You have to use this hidden input inside the form tag.

<input type="hidden" name="type" value="product,article,page">

 

Thanks



- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on store Hire me.
- Email: guleriathakur43@gmail.com - Skype: navrocks1 ,
- Try GEMPAGES a great page builder
-Advance Search Filter
dsmallwood82
Tourist
15 0 2

Where do I place it? How do I get there to add it?

 

Thanks

 

Erin
Shopify Staff
945 127 147

Hi, @dsmallwood82. I'm happy to help you out with this!

 

Currently using the storefront search customers can search across all of your store's products, blog posts, and pages. That being said, there are some settings that need to be in place to ensure products, pages, and blog posts are searchable. This page explains more about the settings you'll want to double check. I recommend taking a look through this whole guide on the storefront search as well. It has a lot of information explaining how the storefront search works and its limitations. If you're hoping to have more customization over your search results I also recommend you consider using the Shopify Search & Discovery app. You can learn more about the app here and you can add it to your store from the app store listing here if you're interested.

 

Please let me know if you have any questions!

Erin | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

dsmallwood82
Tourist
15 0 2

I have them on active. I'm not sure regarding seo.hidden. I'm not sure where to find that to see if I need to fix it. And if so what to fix it to.

???

  • Make sure that the page doesn't have a metafield seo.hidden set to 1, or the page will be hidden from the storefront search

 

lissa2882
Tourist
4 0 0

There are a few reasons why pages and blog posts might be missing from the Shopify Storefront search results: 

  1. The seo.hidden metafield has a "1" value on the pages and blog posts that aren't appearing. (If it appears in Google Search results, then this is not your issue.)
  2. If you use the Search & Discovery app, they might not be included in the results. Go to the Settings tab and make sure that Pages and Blog Posts are both selected under "Search Results".
  3. The search code has been edited to only show products.
  4. There is no copy in the "Content" field in the page/post edit screen.
    I just had the same issue and discovered that the global search only considers the "Title" and  "Content" fields, and completely ignores the copy entered in the template using the Theme Editor. 
    In our case, the About page was missing because all of the content on the page was entered within the theme editor on the "about" template.
    Screenshot 2023-11-30 at 1.46.23 PM.png

(There might be other reasons, but I can't think of any at the moment.)

deanewilson17
New Member
9 0 0

Is there a way to do this the other way around? As in when someone uses the search bar this only brings up the products? 

 

It seems to bring up everything on the website linking to the specific word. Thanks,

Shay
Shopify Staff
2840 442 579

Hey @deanewilson17 

 

Would you be able to share some examples of the search results you are seeing and what you would like to have removed from them? This might be possible, but it could require a third party app or customization to the website for it to have that effect. 

Shay | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

lissa2882
Tourist
4 0 0

You can do this in the Search & Discovery app settings. Screenshot 2024-03-19 at 3.51.22 PM.png