Forums › Forums › Search & Filter Pro › There is “No results” result for nonexistent text
- This topic has 4 replies, 2 voices, and was last updated 5 years, 10 months ago by
Ross.
-
Anonymous(Private) May 25, 2020 at 3:39 pm #245790
I have a CPT called Resources which are downloadable PDF-s. Using AJAX refresh. If I write some gibberish into Search Terms field S&FP displays all posts, not the “There are no results for your criteria” text.
See: https://r0g3rs.posdev.hu/en/resource/
There are other problems but let’s deal with one at a time.
Regards,
ChampdorRoss Moderator(Private) May 25, 2020 at 4:39 pm #245804Hi Peter
The issue is, you have an Ajax container set to
.sza_wrapperHowever, on a page with no results, the ajax container doesn’t exit – so S&F doesn’t know where to get the new results (or in this case, a “no results” message)
So add that around the content in your no results page and ajax should work fine.
Let us know how you get on and what the next questions are!
Best
Anonymous(Private) May 25, 2020 at 5:17 pm #2458061. Title is wrong: There is no “No results” result for nonexistent text
2. Tested further: the exact problem is that if a search term does not return any result then the listed items are not changed. So if all items listed and you put something is search box which has no results then all items are listed (no change). If you have search results list with say two items and you change the search term which will return no results then the two items remain listed.
What do I miss?
Champdor
Ross Moderator(Private) May 26, 2020 at 9:34 am #245826Great stuff Peter, let us know if you encounter any furhter issues.
Best
-
AuthorPosts