Themeco,
I’ve created a search result page for my site’s products using Layout Builder and the following Looper Provider code:
post_type=product&s={{dc:query:search_query}}
Everything seems to be working properly, but I have two questions.
Question 1:
Is there a way to make the query more case sensitive or whole word results only? The query is taking portions of words and outputting them as valid results. For example, if I search “Bed”, one of my products (which is not a bed) has the word “hand-rubbed” in it’s content and outputs as a result. The query is recognizing the last three letters of hand-rubbed (bed) as a valid result. “Hand-rubbed” is NOT listed as a product tag and is only a word in the product description.
Question 2:
When a search returns with no results, I am given a blank section. Is there a way to style the blank portion or set a condition to display something upon no results?