This topic has 8 replies, 2 voices, and was last updated 10 years, 1 months ago ago by Eva Kemp
Can you please guide me to how to hide pages and posts from the search. We only want the search bar to search products and it keeps bring up blog posts, portfolio and private pages. I’ve included a link in the private area.
Thank you
Hello,
Unfortunately we don’t have such option in the theme. You may use some plugin for search form.
Sorry for inconveniences.
Regards,
Eva Kemp.
I have tried multiple advanced search form plugins that can limit search to only products, however, none of them work with your theme (they work fine in other themes).
Since your theme is blocking my ability to be able to implement proper search functionality, I’d appreciate it if you could assist in helping me limit the search to only products. There should be a way to do it either in the functions.php or in the search.php file.
Hello,
I’ve just checked the search form and it’s showing only products in the result.
Could you please provide an example of your search query?
Thank you.
Regards,
Eva Kemp.
Yes, it’s inconsistent. The search results page shows only products (which is what we want).
However, the predictive search functionality shows all categories (which is what we don’t want). Try searching for the color “green” and you’ll see what I mean.
Hello,
To remove all search results except of products you should edit wp-content/themes/legenda/framework/theme-functions.php file, remove the code starting from the line 1570 to 1630.
Thank you.
Regards,
Eva Kemp.
Thank you. The only thing missing now is how to make it so the drop down of the predictive search overlays the navigation — it currently goes behind the navigation text (it’s a CSS error, but I’m not sure what exactly).
Hello,
Please add this code into custom.css file:
.et-mega-search .et-search-result {
z-index: 101 !important;
}
Regards,
Eva Kemp.
The issue related to '‘Limit Search to Products Only’' has been successfully resolved, and the topic is now closed for further responses