hide out of stock products from search result
-
I need that in the “building header” search engine, the products without stock do not appear in the search result.
Best regards
Hello,
Please add this code to the Theme Settings > Custom CSS > Global:
If your labels are round:
body.search-results .labels-rounded .out-of-stock {
display:none;
}
if your labels are rectangular:
body.search-results .labels-rectangular .search-results{
display:none;
}
If you have any questions please feel free to contact us.
Best Regards
I need the non-stock products to not appear in the search engine box, I attach a referential image.
Best regards
Attachments:
You must be
logged in to view attached files.
Hello,
Please make the full backup of your site and check the issue on the Storefront theme to detect if our theme causes the problem. Storefront is a free theme developed by WooСommerce.
Best Regards