• Resolved mikeberny01

    (@mikeberny01)


    Hi, Im having a little trouble with the site search. I have hidden the out of stock products on my site, however the site search still finds them. Is there any way to stop this ? Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter mikeberny01

    (@mikeberny01)

    (if i use a woocommerce product search, the items dont get found – its only the search via the header that i am having this issue with )

    Also, i would like to add.. This is literally the best theme i have used on wordpress. Please could you link me on where to leave a review and i will do so. Thanks

    Branko

    (@brankoconjic)

    Hey @mikeberny01,

    WooCommerce product search uses a modified search field. The search field in the header is the default WordPress search field.

    You could hide the results with CSS:

    .search-results .sinatra-article.type-product.outofstock {
      display: none;
    }

    But keep in mind that this won’t change the text that says “X results found”.
    Screenshot.

    I’m glad to hear you like the theme, you can leave your review here: https://ww.wp.xz.cn/support/theme/sinatra/reviews/

    Thankyou so much! Both codes worked perfectly. I have left a review!

    Thanks again

    Branko

    (@brankoconjic)

    Awesome! Thank you, that means a lot to us.

    Theme Author sinatrateam

    (@sinatrateam)

    Resolving this issue.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Site search’ is closed to new replies.