Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Show 'No result found' text on result page
This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko 3 years, 8 months ago.
- AuthorPosts
- July 5, 2019 at 8:18 am #23606
Hi,
I am using ajax search pro plugin. I have used ‘Live load the results on the results page’ option to display result.
I would like to show ‘No result found’ text on result page if there are no matching results after applying filter. Please let me know how can I do this.
https://www.aroundpune.comExample:
1)search ‘Lonavala’ in header search.
2)Click filter button on top right.
3)Set distance limit in filter above 250km
4)This should show ‘no result found’ text in result area.Thanks in advance!
July 5, 2019 at 10:54 am #23610Hi,
Well, the plugin cannot really control that, it just prints whatever the theme returns. I think the live loader jQuery selector might be too specific, the no-results template within the theme changes the whole main area. You might have to change it from
.place-listing-section
..to:
#main
..like so: https://i.imgur.com/oZ9WQLS.png
Best,
Using the other one would be better, if the theme printed that in the no-results template file (search.php template). Optimally, that item should be present there, and the plugin would copy it’s contents.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
July 5, 2019 at 10:57 am #23611Hi,
Thanks for the solution. Worked like a charm!
July 5, 2019 at 12:28 pm #23612You cannot access this content. Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.